Uses of Interface
com.fasterxml.jackson.core.PrettyPrinter
-
Packages that use PrettyPrinter Package Description com.fasterxml.jackson.core Main public API classes of the core streaming JSON processor: most importantlyJsonFactoryused for constructing JSON parser (JsonParser) and generator (JsonGenerator) instances.com.fasterxml.jackson.core.base Base classes used by concrete Parser and Generator implementations; contain functionality that is not specific to JSON or input abstraction (byte vs char).com.fasterxml.jackson.core.util Utility classes used by Jackson Core functionality.com.fasterxml.jackson.databind Basic data binding (mapping) functionality that allows for reading JSON content into Java Objects (POJOs) and JSON Trees (JsonNode), as well as writing Java Objects and trees as JSON.com.fasterxml.jackson.databind.cfg Package that contains most of configuration-related classes; exception being couple of most-commonly used configuration things (like Feature enumerations) that are at the main level (com.fasterxml.jackson.databind). -
-
Uses of PrettyPrinter in com.fasterxml.jackson.core
Fields in com.fasterxml.jackson.core declared as PrettyPrinter Modifier and Type Field Description protected PrettyPrinterJsonGenerator. _cfgPrettyPrinterObject that handles pretty-printing (usually additional white space to make results more human-readable) during output.Methods in com.fasterxml.jackson.core that return PrettyPrinter Modifier and Type Method Description PrettyPrinterJsonGenerator. getPrettyPrinter()Accessor for checking whether this generator has a configuredPrettyPrinter; returns it if so, null if none configured.Methods in com.fasterxml.jackson.core with parameters of type PrettyPrinter Modifier and Type Method Description JsonGeneratorJsonGenerator. 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 com.fasterxml.jackson.core.base
Methods in com.fasterxml.jackson.core.base that return PrettyPrinter Modifier and Type Method Description protected PrettyPrinterGeneratorBase. _constructDefaultPrettyPrinter()Overridable factory method called to instantiate an appropriatePrettyPrinterfor case of "just use the default one", whenGeneratorBase.useDefaultPrettyPrinter()is called. -
Uses of PrettyPrinter in com.fasterxml.jackson.core.util
Classes in com.fasterxml.jackson.core.util that implement PrettyPrinter Modifier and Type Class Description classDefaultPrettyPrinterDefaultPrettyPrinterimplementation that uses 2-space indentation with platform-default linefeeds.classMinimalPrettyPrinterPrettyPrinterimplementation 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.Methods in com.fasterxml.jackson.core.util that return PrettyPrinter Modifier and Type Method Description PrettyPrinterJsonGeneratorDelegate. getPrettyPrinter()Methods in com.fasterxml.jackson.core.util with parameters of type PrettyPrinter Modifier and Type Method Description JsonGeneratorJsonGeneratorDelegate. setPrettyPrinter(PrettyPrinter pp) -
Uses of PrettyPrinter in com.fasterxml.jackson.databind
Fields in com.fasterxml.jackson.databind declared as PrettyPrinter Modifier and Type Field Description protected PrettyPrinterSerializationConfig. _defaultPrettyPrinterIf "default pretty-printing" is enabled, it will create the instance from this blueprint object.protected static PrettyPrinterSerializationConfig. DEFAULT_PRETTY_PRINTERprotected static PrettyPrinterObjectWriter. NULL_PRETTY_PRINTERWe need to keep track of explicit disabling of pretty printing; easiest to do by a token value.PrettyPrinterObjectWriter.GeneratorSettings. prettyPrinterTo allow for dynamic enabling/disabling of pretty printing, pretty printer can be optionally configured for writer as wellMethods in com.fasterxml.jackson.databind that return PrettyPrinter Modifier and Type Method Description PrettyPrinterSerializationConfig. constructDefaultPrettyPrinter()PrettyPrinterSerializationConfig. getDefaultPrettyPrinter()Accessor for configured blueprint "default"PrettyPrinterto use, if default pretty-printing is enabled.Methods in com.fasterxml.jackson.databind with parameters of type PrettyPrinter Modifier and Type Method Description protected ObjectWriterObjectMapper. _newWriter(SerializationConfig config, JavaType rootType, PrettyPrinter pp)Factory method sub-classes must override, to produceObjectWriterinstances of proper sub-typeObjectMapperObjectMapper. setDefaultPrettyPrinter(PrettyPrinter pp)Method for specifyingPrettyPrinterto use when "default pretty-printing" is enabled (by enablingSerializationFeature.INDENT_OUTPUT)ObjectWriter.GeneratorSettingsObjectWriter.GeneratorSettings. with(PrettyPrinter pp)ObjectWriterObjectWriter. with(PrettyPrinter pp)Method that will construct a new instance that will use specified pretty printer (or, if null, will not do any pretty-printing)SerializationConfigSerializationConfig. withDefaultPrettyPrinter(PrettyPrinter pp)ObjectWriterObjectMapper. writer(PrettyPrinter pp)Factory method for constructingObjectWriterthat will serialize objects using specified pretty printer for indentation (or if null, no pretty printer)Constructors in com.fasterxml.jackson.databind with parameters of type PrettyPrinter Constructor Description GeneratorSettings(PrettyPrinter pp, FormatSchema sch, CharacterEscapes esc, SerializableString rootSep)ObjectWriter(ObjectMapper mapper, SerializationConfig config, JavaType rootType, PrettyPrinter pp)Constructor used byObjectMapperfor initial instantiationSerializationConfig(SerializationConfig src, PrettyPrinter defaultPP) -
Uses of PrettyPrinter in com.fasterxml.jackson.databind.cfg
Methods in com.fasterxml.jackson.databind.cfg with parameters of type PrettyPrinter Modifier and Type Method Description BMapperBuilder. defaultPrettyPrinter(PrettyPrinter pp)
-