Class DefaultXmlPrettyPrinter.FixedSpaceIndenter
- java.lang.Object
-
- com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter.FixedSpaceIndenter
-
- All Implemented Interfaces:
DefaultXmlPrettyPrinter.Indenter,java.io.Serializable
- Enclosing class:
- DefaultXmlPrettyPrinter
protected static class DefaultXmlPrettyPrinter.FixedSpaceIndenter extends java.lang.Object implements DefaultXmlPrettyPrinter.Indenter, java.io.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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description FixedSpaceIndenter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisInline()voidwriteIndentation(com.fasterxml.jackson.core.JsonGenerator g, int level)voidwriteIndentation(org.codehaus.stax2.XMLStreamWriter2 sw, int level)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
writeIndentation
public void writeIndentation(org.codehaus.stax2.XMLStreamWriter2 sw, int level) throws javax.xml.stream.XMLStreamException- Specified by:
writeIndentationin interfaceDefaultXmlPrettyPrinter.Indenter- Throws:
javax.xml.stream.XMLStreamException
-
writeIndentation
public void writeIndentation(com.fasterxml.jackson.core.JsonGenerator g, int level) throws java.io.IOException- Specified by:
writeIndentationin interfaceDefaultXmlPrettyPrinter.Indenter- Throws:
java.io.IOException
-
isInline
public boolean isInline()
- Specified by:
isInlinein interfaceDefaultXmlPrettyPrinter.Indenter- Returns:
- True if indenter is considered inline (does not add linefeeds), false otherwise
-
-