com.fasterxml.jackson.core.util
Class DefaultPrettyPrinter.Lf2SpacesIndenter

java.lang.Object
  extended by com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Lf2SpacesIndenter
All Implemented Interfaces:
DefaultPrettyPrinter.Indenter
Enclosing class:
DefaultPrettyPrinter

public static class DefaultPrettyPrinter.Lf2SpacesIndenter
extends Object
implements DefaultPrettyPrinter.Indenter

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


Constructor Summary
DefaultPrettyPrinter.Lf2SpacesIndenter()
           
 
Method Summary
 boolean isInline()
           
 void writeIndentation(JsonGenerator jg, int level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPrettyPrinter.Lf2SpacesIndenter

public DefaultPrettyPrinter.Lf2SpacesIndenter()
Method Detail

isInline

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

writeIndentation

public void writeIndentation(JsonGenerator jg,
                             int level)
                      throws IOException,
                             JsonGenerationException
Specified by:
writeIndentation in interface DefaultPrettyPrinter.Indenter
Throws:
IOException
JsonGenerationException


Copyright © 2012 fasterxml.com. All Rights Reserved.