public static class DefaultPrettyPrinter.Lf2SpacesIndenter extends DefaultPrettyPrinter.NopIndenter
Modifier and Type | Field and Description |
---|---|
protected String |
_lf
Linefeed used; default value is the platform-specific linefeed.
|
static DefaultPrettyPrinter.Lf2SpacesIndenter |
instance |
Constructor and Description |
---|
DefaultPrettyPrinter.Lf2SpacesIndenter() |
DefaultPrettyPrinter.Lf2SpacesIndenter(String lf) |
Modifier and Type | Method and Description |
---|---|
boolean |
isInline() |
DefaultPrettyPrinter.Lf2SpacesIndenter |
withLinefeed(String lf)
"Mutant factory" method that will return an instance that uses
specified String as linefeed.
|
void |
writeIndentation(JsonGenerator jg,
int level) |
public static final DefaultPrettyPrinter.Lf2SpacesIndenter instance
protected final String _lf
public DefaultPrettyPrinter.Lf2SpacesIndenter()
public DefaultPrettyPrinter.Lf2SpacesIndenter(String lf)
public DefaultPrettyPrinter.Lf2SpacesIndenter withLinefeed(String lf)
public boolean isInline()
isInline
in interface DefaultPrettyPrinter.Indenter
isInline
in class DefaultPrettyPrinter.NopIndenter
public void writeIndentation(JsonGenerator jg, int level) throws IOException, JsonGenerationException
writeIndentation
in interface DefaultPrettyPrinter.Indenter
writeIndentation
in class DefaultPrettyPrinter.NopIndenter
IOException
JsonGenerationException
Copyright © 2012-2013 FasterXML. All Rights Reserved.