org.linkedin.util.json.jackson
Class LfNSpacesIndenter

java.lang.Object
  extended by org.linkedin.util.json.jackson.LfNSpacesIndenter
All Implemented Interfaces:
com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter

public class LfNSpacesIndenter
extends java.lang.Object
implements com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter

Copied/adapted from jackson to handle N spaces instead of 2


Constructor Summary
LfNSpacesIndenter(int numSpaces)
          Constructor
 
Method Summary
 boolean isInline()
           
 void writeIndentation(com.fasterxml.jackson.core.JsonGenerator jg, int level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LfNSpacesIndenter

public LfNSpacesIndenter(int numSpaces)
Constructor

Method Detail

isInline

public boolean isInline()
Specified by:
isInline in interface com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter

writeIndentation

public void writeIndentation(com.fasterxml.jackson.core.JsonGenerator jg,
                             int level)
                      throws java.io.IOException
Specified by:
writeIndentation in interface com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter
Throws:
java.io.IOException