Module tools.jackson.dataformat.xml
Interface DefaultXmlPrettyPrinter.Indenter
- All Known Implementing Classes:
DefaultXmlPrettyPrinter.FixedSpaceIndenter,DefaultXmlPrettyPrinter.Lf2SpacesIndenter,DefaultXmlPrettyPrinter.NopIndenter
- Enclosing class:
- DefaultXmlPrettyPrinter
public static interface DefaultXmlPrettyPrinter.Indenter
Interface that defines objects that can produce indentation used
to separate object entries and array values. Indentation in this
context just means insertion of white space, independent of whether
linefeeds are output.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisInline()voidwriteIndentation(org.codehaus.stax2.XMLStreamWriter2 sw, int level) voidwriteIndentation(tools.jackson.core.JsonGenerator g, int level)
-
Method Details
-
writeIndentation
void writeIndentation(tools.jackson.core.JsonGenerator g, int level) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-
writeIndentation
- Throws:
XMLStreamException
-
isInline
boolean isInline()- Returns:
- True if indenter is considered inline (does not add linefeeds), false otherwise
-