Class DefaultXmlPrettyPrinter.Lf2SpacesIndenter
- java.lang.Object
-
- com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter.Lf2SpacesIndenter
-
- All Implemented Interfaces:
DefaultXmlPrettyPrinter.Indenter
,java.io.Serializable
- Enclosing class:
- DefaultXmlPrettyPrinter
protected static class DefaultXmlPrettyPrinter.Lf2SpacesIndenter extends java.lang.Object implements DefaultXmlPrettyPrinter.Indenter, java.io.Serializable
Default linefeed-based indenter uses system-specific linefeeds and 2 spaces for indentation per level.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Lf2SpacesIndenter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isInline()
void
writeIndentation(com.fasterxml.jackson.core.JsonGenerator jg, int level)
void
writeIndentation(org.codehaus.stax2.XMLStreamWriter2 sw, int level)
-
-
-
Method Detail
-
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 javax.xml.stream.XMLStreamException
- Specified by:
writeIndentation
in interfaceDefaultXmlPrettyPrinter.Indenter
- Throws:
javax.xml.stream.XMLStreamException
-
writeIndentation
public void writeIndentation(com.fasterxml.jackson.core.JsonGenerator jg, int level) throws java.io.IOException
- Specified by:
writeIndentation
in interfaceDefaultXmlPrettyPrinter.Indenter
- Throws:
java.io.IOException
-
-