public interface StringTemplateWriter
Modifier and Type | Field and Description |
---|---|
static int |
NO_WRAP |
Modifier and Type | Method and Description |
---|---|
void |
popAnchorPoint() |
java.lang.String |
popIndentation() |
void |
pushAnchorPoint() |
void |
pushIndentation(java.lang.String indent) |
void |
setLineWidth(int lineWidth) |
int |
write(java.lang.String str)
Write the string and return how many actual chars were written.
|
int |
write(java.lang.String str,
java.lang.String wrap)
Same as write, but wrap lines using the indicated string as the
wrap character (such as "\n").
|
int |
writeSeparator(java.lang.String str)
Write a separator.
|
int |
writeWrapSeparator(java.lang.String wrap)
Because we might need to wrap at a non-atomic string boundary
(such as when we wrap in between template applications
|
static final int NO_WRAP
void pushIndentation(java.lang.String indent)
java.lang.String popIndentation()
void pushAnchorPoint()
void popAnchorPoint()
void setLineWidth(int lineWidth)
int write(java.lang.String str) throws java.io.IOException
java.io.IOException
int write(java.lang.String str, java.lang.String wrap) throws java.io.IOException
java.io.IOException
int writeWrapSeparator(java.lang.String wrap) throws java.io.IOException
java.io.IOException
int writeSeparator(java.lang.String str) throws java.io.IOException
java.io.IOException
Copyright ? 2006-2021 Terence Parr