Package de.hsh.graja.util.marshal
Interface Indentation
- All Known Implementing Classes:
IndentingXMLStreamWriter
public interface Indentation
Characters that represent line breaks and indentation. These are represented
as String-valued JavaBean properties.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionThe characters used for one level of indentation.The characters that introduce a new line.void
Set the characters used for one level of indentation.void
setNewLine
(String newLine) Set the characters that introduce a new line.
-
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
-
setIndent
Set the characters used for one level of indentation. The default isDEFAULT_INDENT
. "\t" is a popular alternative. -
getIndent
String getIndent()The characters used for one level of indentation. -
setNewLine
Set the characters that introduce a new line. The default isNORMAL_END_OF_LINE
.IndentingXMLStreamWriter.getLineSeparator()
() is a popular alternative. -
getNewLine
String getNewLine()The characters that introduce a new line.
-