Package aQute.lib.justif
Class Justif
java.lang.Object
aQute.lib.justif.Justif
Formatter. This formatter allows you to build up an input string and then
wraps the text. The following markup is available
- $- - Line over the remaining width
- \\t[0-9] - Go to tab position, and set indent to that position
- \\f - Newlin
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
toString()
wrap()
void
wrap
(StringBuilder sb) Routine to wrap a stringbuffer.
-
Field Details
-
tabs
final int[] tabs -
width
final int width -
sb
-
f
-
-
Constructor Details
-
Justif
public Justif(int width, int... tabs) -
Justif
public Justif()
-
-
Method Details
-
wrap
Routine to wrap a stringbuffer. Basically adds line endings but has the following control characters:- Space at the beginnng of a line is repeated when wrapped for indent.
- A tab will mark the current position and wrapping will return to that position
- A form feed in a tabbed colum will break but stay in the column
- Parameters:
sb
-
-
wrap
-
formatter
-
toString
-
indent
-
entry
-
table
-
toString
-