JSON
Version 1.0

org.codehaus.jackson.impl
Class DefaultPrettyPrinter.Lf2SpacesIndenter

java.lang.Object
  extended by org.codehaus.jackson.impl.DefaultPrettyPrinter.Lf2SpacesIndenter
All Implemented Interfaces:
Indenter
Enclosing class:
DefaultPrettyPrinter

public static class DefaultPrettyPrinter.Lf2SpacesIndenter
extends Object
implements 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 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 Indenter
Throws:
IOException
JsonGenerationException

JSON
Version 1.0

Apache License, Version 2.0