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