| Modifier and Type | Field and Description |
|---|---|
protected String |
indentDepth |
protected int |
indentLevel |
protected boolean |
skipOptionalOutput |
protected Writer |
writer |
| Constructor and Description |
|---|
Output(Writer writer,
boolean skipOptionalOutput)
Creates a new output for the given writer and output settings.
|
| Modifier and Type | Method and Description |
|---|---|
Output |
decIndent()
Decrements the indentation.
|
Output |
incIndent()
Increments the indentation.
|
Output |
lineBreak()
Outputs an indented line break in any case.
|
Output |
optionalLineBreak()
Outputs an indented line break or a " " in case of minified output.
|
Output |
output(Object value)
Outputs the given value as string.
|
String |
toString() |
protected int indentLevel
protected String indentDepth
protected Writer writer
protected boolean skipOptionalOutput
public Output(Writer writer, boolean skipOptionalOutput)
writer - the target of the generated outputskipOptionalOutput - determines if the output should be properly indented or "minified".public Output output(Object value) throws IOException
This will be added to the output in any case.
value - the data out add to the outputIOException - in case of an io error in the underlying writerpublic Output optionalLineBreak() throws IOException
IOException - in case of an io error in the underlying writerpublic Output lineBreak() throws IOException
IOException - in case of an io error in the underlying writerpublic Output incIndent()
public Output decIndent()
Copyright © 2016. All rights reserved.