public class SeparatorWriter
extends java.lang.Object
| Constructor and Description |
|---|
SeparatorWriter(java.lang.StringBuilder sb,
java.lang.String separatorStr)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
needSeparator()
Indicate that a separator will be required the next time
one is requested.
|
void |
writeSeparator()
Request to write a separator if one is necessary.
|
public SeparatorWriter(java.lang.StringBuilder sb,
java.lang.String separatorStr)
sb - the StringBuilder being used to build the StringseparatorStr - the separator string to usepublic void needSeparator()
writeSeparator() will do nothing.public void writeSeparator()
needSeparator() that
has not yet been fulfilled.