org.codehaus.jackson.impl
Class DefaultPrettyPrinter.FixedSpaceIndenter
java.lang.Object
org.codehaus.jackson.impl.DefaultPrettyPrinter.FixedSpaceIndenter
- All Implemented Interfaces:
- Indenter
- Enclosing class:
- DefaultPrettyPrinter
public static class DefaultPrettyPrinter.FixedSpaceIndenter
- extends Object
- implements Indenter
This is a very simple indenter that only every adds a
single space for indentation. It is used as the default
indenter for array values.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPrettyPrinter.FixedSpaceIndenter
public DefaultPrettyPrinter.FixedSpaceIndenter()
writeIndentation
public void writeIndentation(JsonGenerator jg,
int level)
throws IOException,
JsonGenerationException
- Specified by:
writeIndentation
in interface Indenter
- Throws:
IOException
JsonGenerationException
isInline
public boolean isInline()
- Specified by:
isInline
in interface Indenter
- Returns:
- True if indenter is considered inline (does not add linefeeds),
false otherwise
Apache License, Version 2.0