Package org.apache.maven.doxia.util
Class LineBreaker
java.lang.Object
org.apache.maven.doxia.util.LineBreaker
Deprecated.
no longer used by Doxia and scheduled for removal in 2.3.0. It also swallows every
write failure, so a failing writer would produce a silently truncated file.
Allows to specify the line-length of an output writer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.The default maximal line length. -
Constructor Summary
ConstructorsConstructorDescriptionLineBreaker(Writer out) Deprecated.Constructs a new LineBreaker with DEFAULT_MAX_LINE_LENGTH.LineBreaker(Writer out, int max) Deprecated.Constructs a new LineBreaker with the given max line length. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.Close the writer.voidflush()Deprecated.Write out the current StringBuilder and flush the writer.Deprecated.Returns the current destination writer.voidDeprecated.Writes the given text to the writer.voidDeprecated.Writes the given text to the writer.
-
Field Details
-
DEFAULT_MAX_LINE_LENGTH
Deprecated.The default maximal line length.- See Also:
-
-
Constructor Details
-
LineBreaker
Deprecated.Constructs a new LineBreaker with DEFAULT_MAX_LINE_LENGTH.- Parameters:
out- The writer to use.
-
LineBreaker
Deprecated.Constructs a new LineBreaker with the given max line length.- Parameters:
out- The writer to use.max- The maximal line length.
-
-
Method Details
-
getDestination
Deprecated.Returns the current destination writer.- Returns:
- The destination.
-
write
Deprecated.Writes the given text to the writer. White space is not preserved.- Parameters:
text- The text to write.- Throws:
IOException- if there's a problem writing the text.
-
write
Deprecated.Writes the given text to the writer.- Parameters:
text- The text to write.preserveSpace- True to preserve white space.
-
flush
Deprecated.Write out the current StringBuilder and flush the writer. Any IOException will be swallowed. -
close
Deprecated.Close the writer.
-