20 package net.sf.gridarta.utils;
32 private final StringBuilder
sb =
new StringBuilder();
61 public void append(
final String str) {
72 thisLineLength += str.length();
80 public void append(
final int value) {
81 append(Integer.toString(value));
boolean firstWord
Set if no word was added yet, unset if at least one word was added.
final int maxLineLength
The maximum line length.
void append(final int value)
Append an integer value.
int thisLineLength
The length of the last line in sb.
void append(final String str)
Append a word.
WrappingStringBuilder(final int maxLineLength)
Create a new instance.
final StringBuilder sb
The StringBuilder holding the string data.
String toString()
Return the concatenated words as a string.
Implements a string buffer that separates words by "," and wraps lines at a given margin...