com.fasterxml.jackson.dataformat.xml.util
Class DefaultXmlPrettyPrinter.Lf2SpacesIndenter

java.lang.Object
  extended by com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter.Lf2SpacesIndenter
All Implemented Interfaces:
DefaultXmlPrettyPrinter.Indenter
Enclosing class:
DefaultXmlPrettyPrinter

protected static class DefaultXmlPrettyPrinter.Lf2SpacesIndenter
extends Object
implements DefaultXmlPrettyPrinter.Indenter

Default linefeed-based indenter uses system-specific linefeeds and 2 spaces for indentation per level.


Constructor Summary
DefaultXmlPrettyPrinter.Lf2SpacesIndenter()
           
 
Method Summary
 boolean isInline()
           
 void writeIndentation(com.fasterxml.jackson.core.JsonGenerator jg, int level)
           
 void writeIndentation(org.codehaus.stax2.XMLStreamWriter2 sw, int level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultXmlPrettyPrinter.Lf2SpacesIndenter

public DefaultXmlPrettyPrinter.Lf2SpacesIndenter()
Method Detail

isInline

public boolean isInline()
Specified by:
isInline in interface DefaultXmlPrettyPrinter.Indenter
Returns:
True if indenter is considered inline (does not add linefeeds), false otherwise

writeIndentation

public void writeIndentation(org.codehaus.stax2.XMLStreamWriter2 sw,
                             int level)
                      throws XMLStreamException
Specified by:
writeIndentation in interface 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 DefaultXmlPrettyPrinter.Indenter
Throws:
IOException
com.fasterxml.jackson.core.JsonGenerationException


Copyright © 2012 FasterXML. All Rights Reserved.