Class DefaultXmlPrettyPrinter.Lf2SpacesIndenter
java.lang.Object
com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter.Lf2SpacesIndenter
- All Implemented Interfaces:
DefaultXmlPrettyPrinter.Indenter
,Serializable
- 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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isInline()
void
writeIndentation
(com.fasterxml.jackson.core.JsonGenerator jg, int level) void
writeIndentation
(org.codehaus.stax2.XMLStreamWriter2 sw, int level)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
Lf2SpacesIndenter
public Lf2SpacesIndenter()
-
-
Method Details
-
isInline
public boolean isInline()- Specified by:
isInline
in 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:
writeIndentation
in interfaceDefaultXmlPrettyPrinter.Indenter
- Throws:
XMLStreamException
-
writeIndentation
public void writeIndentation(com.fasterxml.jackson.core.JsonGenerator jg, int level) throws IOException - Specified by:
writeIndentation
in interfaceDefaultXmlPrettyPrinter.Indenter
- Throws:
IOException
-