Package org.codehaus.jackson.impl
Interface Indenter
-
- All Known Implementing Classes:
DefaultPrettyPrinter.FixedSpaceIndenter,DefaultPrettyPrinter.Lf2SpacesIndenter,DefaultPrettyPrinter.NopIndenter
public interface IndenterInterface that defines objects that can produce indentation used to separate object entries and array values. Indentation in this context just means insertion of white space, independent of whether linefeeds are output.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisInline()voidwriteIndentation(JsonGenerator jg, int level)
-
-
-
Method Detail
-
writeIndentation
void writeIndentation(JsonGenerator jg, int level) throws java.io.IOException, JsonGenerationException
- Throws:
java.io.IOExceptionJsonGenerationException
-
isInline
boolean isInline()
- Returns:
- True if indenter is considered inline (does not add linefeeds), false otherwise
-
-