Class DefaultXmlPrettyPrinter.FixedSpaceIndenter
java.lang.Object
com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter.FixedSpaceIndenter
- All Implemented Interfaces:
DefaultXmlPrettyPrinter.Indenter
,Serializable
- Enclosing class:
- DefaultXmlPrettyPrinter
protected static class DefaultXmlPrettyPrinter.FixedSpaceIndenter
extends Object
implements DefaultXmlPrettyPrinter.Indenter, Serializable
This is a very simple indenter that only every adds a
single space for indentation. It is used as the default
indenter for array values.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isInline()
void
writeIndentation
(com.fasterxml.jackson.core.JsonGenerator g, int level) void
writeIndentation
(org.codehaus.stax2.XMLStreamWriter2 sw, int level)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
FixedSpaceIndenter
public FixedSpaceIndenter()
-
-
Method Details
-
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 g, int level) throws IOException - Specified by:
writeIndentation
in interfaceDefaultXmlPrettyPrinter.Indenter
- Throws:
IOException
-
isInline
public boolean isInline()- Specified by:
isInline
in interfaceDefaultXmlPrettyPrinter.Indenter
- Returns:
- True if indenter is considered inline (does not add linefeeds), false otherwise
-