Uses of Interface
tools.jackson.core.PrettyPrinter
Packages that use PrettyPrinter
Package
Description
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser)
and generator
(JsonGenerator)
instances.Base classes used by concrete Parser and Generator implementations;
contain functionality that is not specific to JSON or input
abstraction (byte vs char).
JSON-specific parser and generator implementation classes that
Jackson defines and uses.
Utility classes used by Jackson Core functionality.
-
Uses of PrettyPrinter in tools.jackson.core
Methods in tools.jackson.core that return PrettyPrinterModifier and TypeMethodDescriptionObjectWriteContext.Base.getPrettyPrinter()ObjectWriteContext.getPrettyPrinter()Accessor for gettingPrettyPrinterinstance to use for a new generator. -
Uses of PrettyPrinter in tools.jackson.core.base
Methods in tools.jackson.core.base that return PrettyPrinterModifier and TypeMethodDescriptionprotected PrettyPrinterGeneratorBase._constructDefaultPrettyPrinter()Overridable factory method called to instantiate an appropriatePrettyPrinterfor case of "just use the default one", when default pretty printer handling enabled. -
Uses of PrettyPrinter in tools.jackson.core.json
Fields in tools.jackson.core.json declared as PrettyPrinterModifier and TypeFieldDescriptionprotected final PrettyPrinterJsonGeneratorBase._cfgPrettyPrinterObject that handles pretty-printing (usually additional white space to make results more human-readable) during output.Constructors in tools.jackson.core.json with parameters of type PrettyPrinterModifierConstructorDescriptionprotectedJsonGeneratorBase(ObjectWriteContext writeCtxt, IOContext ioCtxt, int streamWriteFeatures, int formatWriteFeatures, SerializableString rootValueSeparator, PrettyPrinter pp, CharacterEscapes charEsc, int maxNonEscaped) UTF8JsonGenerator(ObjectWriteContext writeCtxt, IOContext ioCtxt, int streamWriteFeatures, int formatWriteFeatures, OutputStream out, SerializableString rootValueSep, CharacterEscapes charEsc, PrettyPrinter pp, int maxNonEscaped, char quoteChar) UTF8JsonGenerator(ObjectWriteContext writeCtxt, IOContext ioCtxt, int streamWriteFeatures, int formatWriteFeatures, OutputStream out, SerializableString rootValueSep, CharacterEscapes charEsc, PrettyPrinter pp, int maxNonEscaped, char quoteChar, byte[] outputBuffer, int outputOffset, boolean bufferRecyclable) WriterBasedJsonGenerator(ObjectWriteContext writeCtxt, IOContext ioCtxt, int streamWriteFeatures, int formatWriteFeatures, Writer w, SerializableString rootValueSep, PrettyPrinter pp, CharacterEscapes charEsc, int maxNonEscaped, char quoteChar) -
Uses of PrettyPrinter in tools.jackson.core.util
Classes in tools.jackson.core.util that implement PrettyPrinterModifier and TypeClassDescriptionclassDefaultPrettyPrinterimplementation that uses 2-space indentation with platform-default linefeeds.classPrettyPrinterimplementation that adds no indentation, just implements everything necessary for value output to work as expected, and provide simpler extension points to allow for creating simple custom implementations that add specific decoration or overrides.