public interface Indentation
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_INDENT
Two spaces; the default indentation.
|
static String |
NORMAL_END_OF_LINE
"\n"; the normalized representation of end-of-line in XML.
|
Modifier and Type | Method and Description |
---|---|
String |
getIndent()
The characters used for one level of indentation.
|
String |
getNewLine()
The characters that introduce a new line.
|
void |
setIndent(String indent)
Set the characters used for one level of indentation.
|
void |
setNewLine(String newLine)
Set the characters that introduce a new line.
|
static final String DEFAULT_INDENT
static final String NORMAL_END_OF_LINE
void setIndent(String indent)
DEFAULT_INDENT
. "\t" is a popular alternative.String getIndent()
void setNewLine(String newLine)
NORMAL_END_OF_LINE
.
IndentingXMLStreamWriter.getLineSeparator()
() is a popular
alternative.String getNewLine()