Uses of Interface
org.codehaus.jackson.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
(JsonParser)
instances.Parser and generator implementation classes that Jackson
defines and uses.
Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper class, as well
as convenience methods included in
JsonParserPackage that contains experimental implementation of
"Binary-Encoded JSON-Like" data format handlers (parser,
generator, factory produce both, supporting constants).
Utility classes used by Jackson Core functionality.
-
Uses of PrettyPrinter in org.codehaus.jackson
Fields in org.codehaus.jackson declared as PrettyPrinterModifier and TypeFieldDescriptionprotected PrettyPrinterJsonGenerator._cfgPrettyPrinterObject that handles pretty-printing (usually additional white space to make results more human-readable) during output.Methods in org.codehaus.jackson with parameters of type PrettyPrinterModifier and TypeMethodDescriptionJsonGenerator.setPrettyPrinter(PrettyPrinter pp) Method for setting a custom pretty printer, which is usually used to add indentation for improved human readability. -
Uses of PrettyPrinter in org.codehaus.jackson.impl
Classes in org.codehaus.jackson.impl that implement PrettyPrinter -
Uses of PrettyPrinter in org.codehaus.jackson.map
Fields in org.codehaus.jackson.map declared as PrettyPrinterModifier and TypeFieldDescriptionprotected final PrettyPrinterObjectWriter._prettyPrinterTo allow for dynamic enabling/disabling of pretty printing, pretty printer can be optionally configured for writer as wellprotected static final PrettyPrinterObjectWriter.NULL_PRETTY_PRINTERWe need to keep track of explicit disabling of pretty printing; easiest to do by a token value.Methods in org.codehaus.jackson.map that return PrettyPrinterModifier and TypeMethodDescriptionprotected PrettyPrinterObjectMapper._defaultPrettyPrinter()Helper method that should return default pretty-printer to use for generators constructed by this mapper, when instructed to use default pretty printer.Methods in org.codehaus.jackson.map with parameters of type PrettyPrinterModifier and TypeMethodDescriptionObjectMapper.prettyPrintingWriter(PrettyPrinter pp) Deprecated.Since 1.9, useObjectMapper.writer(FilterProvider)instead.ObjectWriter.withPrettyPrinter(PrettyPrinter pp) Method that will construct a new instance that will use specified pretty printer (or, if null, will not do any pretty-printing)ObjectMapper.writer(PrettyPrinter pp) Factory method for constructingObjectWriterthat will serialize objects using specified pretty printer for indentation (or if null, no pretty printer)Constructors in org.codehaus.jackson.map with parameters of type PrettyPrinterModifierConstructorDescriptionprotectedObjectWriter(ObjectMapper mapper, SerializationConfig config, JavaType rootType, PrettyPrinter pp) Constructor used byObjectMapperfor initial instantiationprotectedObjectWriter(ObjectWriter base, SerializationConfig config, JavaType rootType, PrettyPrinter pp, FormatSchema s) Copy constructor used for building variations. -
Uses of PrettyPrinter in org.codehaus.jackson.smile
Methods in org.codehaus.jackson.smile with parameters of type PrettyPrinterModifier and TypeMethodDescriptionSmileGenerator.setPrettyPrinter(PrettyPrinter pp) No way (or need) to indent anything, so let's block any attempts. -
Uses of PrettyPrinter in org.codehaus.jackson.util
Classes in org.codehaus.jackson.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.
DefaultPrettyPrinter; will be removed in Jackson 2.0