public interface STWriter
Modifier and Type | Field and Description |
---|---|
static int |
NO_WRAP |
Modifier and Type | Method and Description |
---|---|
int |
index()
Return the absolute char index into the output of the char
we're about to write.
|
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 |
writeWrap(java.lang.String wrap)
Because we evaluate ST instance by invoking exec() again, we
can't pass options in.
|
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 writeWrap(java.lang.String wrap) throws java.io.IOException
java.io.IOException
int writeSeparator(java.lang.String str) throws java.io.IOException
java.io.IOException
int index()