Package org.spincast.plugins.jacksonxml
Class SpincastXmlIndenter
java.lang.Object
org.spincast.plugins.jacksonxml.SpincastXmlIndenter
- All Implemented Interfaces:
com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter.Indenter
public class SpincastXmlIndenter
extends Object
implements com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter.Indenter
Custom XML indenter.
Allow us to specify how many spaces to use for indentation and what
newline character to use.
Based on com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter$Lf2SpacesIndenter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intprotected Stringprotected SpincastXmlManagerConfigbooleanisInline()voidwriteIndentation(com.fasterxml.jackson.core.JsonGenerator jg, int level) voidwriteIndentation(org.codehaus.stax2.XMLStreamWriter2 sw, int level)
-
Constructor Details
-
SpincastXmlIndenter
-
-
Method Details
-
getSpincastXmlManagerConfig
-
isInline
public boolean isInline()- Specified by:
isInlinein interfacecom.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter.Indenter
-
writeIndentation
public void writeIndentation(org.codehaus.stax2.XMLStreamWriter2 sw, int level) throws XMLStreamException - Specified by:
writeIndentationin interfacecom.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter.Indenter- Throws:
XMLStreamException
-
writeIndentation
public void writeIndentation(com.fasterxml.jackson.core.JsonGenerator jg, int level) throws IOException, com.fasterxml.jackson.core.JsonGenerationException - Specified by:
writeIndentationin interfacecom.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter.Indenter- Throws:
IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
getIndentationSpaceNumber
protected int getIndentationSpaceNumber() -
getNewlineChars
-