Module tools.jackson.dataformat.xml
Class DefaultXmlPrettyPrinter.Lf2SpacesIndenter
java.lang.Object
tools.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter.Lf2SpacesIndenter
- All Implemented Interfaces:
Serializable,DefaultXmlPrettyPrinter.Indenter
- Enclosing class:
- DefaultXmlPrettyPrinter
protected class DefaultXmlPrettyPrinter.Lf2SpacesIndenter
extends Object
implements DefaultXmlPrettyPrinter.Indenter, Serializable
Default linefeed-based indenter uses system-specific linefeeds and
2 spaces for indentation per level.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisInline()voidwriteIndentation(org.codehaus.stax2.XMLStreamWriter2 sw, int level) voidwriteIndentation(tools.jackson.core.JsonGenerator g, int level)
-
Constructor Details
-
Lf2SpacesIndenter
public Lf2SpacesIndenter()
-
-
Method Details
-
isInline
public boolean isInline()- Specified by:
isInlinein interfaceDefaultXmlPrettyPrinter.Indenter- Returns:
- True if indenter is considered inline (does not add linefeeds), false otherwise
-
writeIndentation
public void writeIndentation(org.codehaus.stax2.XMLStreamWriter2 sw, int level) throws XMLStreamException - Specified by:
writeIndentationin interfaceDefaultXmlPrettyPrinter.Indenter- Throws:
XMLStreamException
-
writeIndentation
public void writeIndentation(tools.jackson.core.JsonGenerator g, int level) throws tools.jackson.core.JacksonException - Specified by:
writeIndentationin interfaceDefaultXmlPrettyPrinter.Indenter- Throws:
tools.jackson.core.JacksonException
-