|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.doxia.util.LineBreaker
public class LineBreaker
Allows to specify the line-length of an output writer.
| Field Summary | |
|---|---|
static int |
DEFAULT_MAX_LINE_LENGTH
The default maximal line length. |
| Constructor Summary | |
|---|---|
LineBreaker(Writer out)
Constructs a new LineBreaker with DEFAULT_MAX_LINE_LENGTH. |
|
LineBreaker(Writer out,
int max)
Constructs a new LineBreaker with the given max line length. |
|
| Method Summary | |
|---|---|
void |
close()
Close the writer. |
void |
flush()
Write out the current StringBuffer and flush the writer. |
Writer |
getDestination()
Returns the current destination writer. |
void |
write(String text)
Writes the given text to the writer. |
void |
write(String text,
boolean preserveSpace)
Writes the given text to the writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_MAX_LINE_LENGTH
| Constructor Detail |
|---|
public LineBreaker(Writer out)
out - The writer to use.
public LineBreaker(Writer out,
int max)
out - The writer to use.max - The maximal line length.| Method Detail |
|---|
public Writer getDestination()
public void write(String text)
throws IOException
text - The text to write.
IOException - if there's a problem writing the text.
public void write(String text,
boolean preserveSpace)
text - The text to write.preserveSpace - True to preserve white space.public void flush()
public void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||