- All Known Implementing Classes:
IndentingXMLEventWriter,IndentingXMLStreamWriter
public interface Indentation
Characters that represent line breaks and indentation. These are represented
as String-valued JavaBean properties.
-
Field Details
-
DEFAULT_INDENT
Two spaces; the default indentation.- See Also:
-
NORMAL_END_OF_LINE
"\n"; the normalized representation of end-of-line in XML.- See Also:
-
-
Method Details
-
getIndent
String getIndent()The characters used for one level of indentation.- Returns:
- the indentation string
-
setIndent
Set the characters used for one level of indentation. The default isDEFAULT_INDENT. "\t" is a popular alternative.- Parameters:
indent- the indentation string
-