org.exolab.javasource
class LineFormatter extends Object
| Field Summary | |
|---|---|
| String | comment |
| int | length |
| int | maxLength |
| int | offset |
| String | prefix |
| Constructor Summary | |
|---|---|
| LineFormatter(String comment)
Creates a LineFormatter for the given comment | |
| LineFormatter(String comment, int maxLength)
Creates a new LineFormatter for the given comment | |
| LineFormatter(String comment, int maxLength, String prefix)
Creates a new LineFormatter for the given comment | |
| Method Summary | |
|---|---|
| boolean | hasMoreLines() |
| String | nextLine() |
| void | setPrefix(String prefix)
Sets the prefix that should be appended to the beginning of
each line |
Parameters: comment the String to format
Parameters: comment the String to format maxLength the maximum number of characters per line
Parameters: comment the String to format maxLength the maximum number of characters per line prefix a prefix to append to the beginning of each line
Parameters: prefix the prefix for this LineFormatter