-
- All Known Implementing Classes:
IndentingXMLEventWriter,IndentingXMLStreamWriter
public interface IndentationCharacters that represent line breaks and indentation. These are represented as String-valued JavaBean properties.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_INDENTTwo spaces; the default indentation.static java.lang.StringNORMAL_END_OF_LINE"\n"; the normalized representation of end-of-line in XML.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetIndent()The characters used for one level of indentation.voidsetIndent(java.lang.String indent)Set the characters used for one level of indentation.
-
-
-
Field Detail
-
DEFAULT_INDENT
static final java.lang.String DEFAULT_INDENT
Two spaces; the default indentation.- See Also:
- Constant Field Values
-
NORMAL_END_OF_LINE
static final java.lang.String NORMAL_END_OF_LINE
"\n"; the normalized representation of end-of-line in XML.- See Also:
- Constant Field Values
-
-
Method Detail
-
getIndent
java.lang.String getIndent()
The characters used for one level of indentation.- Returns:
- the indentation string
-
setIndent
void setIndent(java.lang.String indent)
Set the characters used for one level of indentation. The default isDEFAULT_INDENT. "\t" is a popular alternative.- Parameters:
indent- the indentation string
-
-