
public.javadoc.org.spincast.plugins.jacksonxml.SpincastXmlIndenter.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastXmlIndenter (org.spincast:spincast-framework 1.7.1 API)
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
Constructor and Description
SpincastXmlIndenter(SpincastXmlManagerConfig spincastXmlManagerConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
protected int
getIndentationSpaceNumber()
protected String
getNewlineChars()
protected SpincastXmlManagerConfig
getSpincastXmlManagerConfig()
boolean
isInline()
void
writeIndentation(com.fasterxml.jackson.core.JsonGenerator jg,
int level)
void
writeIndentation(org.codehaus.stax2.XMLStreamWriter2 sw,
int level)
-
-
Constructor Detail
-
SpincastXmlIndenter
@Inject
public SpincastXmlIndenter(SpincastXmlManagerConfig spincastXmlManagerConfig)
-
Method Detail
-
getSpincastXmlManagerConfig
protected SpincastXmlManagerConfig getSpincastXmlManagerConfig()
-
isInline
public boolean isInline()
- Specified by:
isInline
in interface com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter.Indenter
-
writeIndentation
public void writeIndentation(org.codehaus.stax2.XMLStreamWriter2 sw,
int level)
throws XMLStreamException
- Specified by:
writeIndentation
in interface com.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:
writeIndentation
in interface com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter.Indenter
- Throws:
IOException
com.fasterxml.jackson.core.JsonGenerationException
-
getIndentationSpaceNumber
protected int getIndentationSpaceNumber()
-
getNewlineChars
protected String getNewlineChars()
Copyright © 2019. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy