Package com.fasterxml.jackson.core.util
Utility classes used by Jackson Core functionality.
-
Interface Summary Interface Description DefaultPrettyPrinter.Indenter Interface that defines objects that can produce indentation used to separate object entries and array values.Instantiatable<T> Add-on interface used to indicate things that may be "blueprint" objects which can not be used as is, but are used for creating usable per-process (serialization, deserialization) instances, usingInstantiatable.createInstance()
method.JacksonFeature Basic API implemented by Enums used for simple Jackson "features": on/off settings and capabilities exposed as something that can be internally represented as bit sets. -
Class Summary Class Description BufferRecycler This is a small utility class, whose main functionality is to allow simple reuse of raw byte/char buffers.BufferRecyclers Helper entity used to control access to simple buffer recyling scheme used for some encoding, decoding tasks.ByteArrayBuilder Helper class that is similar toByteArrayOutputStream
in usage, but more geared to Jackson use cases internally.DefaultIndenter Default linefeed-based indenter, used byDefaultPrettyPrinter
(unless overridden).DefaultPrettyPrinter DefaultPrettyPrinter
implementation that uses 2-space indentation with platform-default linefeeds.DefaultPrettyPrinter.FixedSpaceIndenter This is a very simple indenter that only adds a single space for indentation.DefaultPrettyPrinter.NopIndenter Dummy implementation that adds no indentation whatsoeverInternCache Singleton class that adds a simple first-level cache in front of regular String.intern() functionality.JacksonFeatureSet<F extends JacksonFeature> Container similar toEnumSet
meant for storing sets ofJacksonFeature
s (usuallyEnum
s): main difference being that these sets are immutable.JsonGeneratorDelegate JsonParserDelegate Helper class that implements delegation pattern forJsonParser
, to allow for simple overridability of basic parsing functionality.JsonParserSequence Helper class that can be used to sequence multiple physicalJsonParser
s to create a single logical sequence of tokens, as a singleJsonParser
.MinimalPrettyPrinter PrettyPrinter
implementation 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.RequestPayload Container object used to contain optional information on content being parsed, passed toJsonParseException
in case of exception being thrown; this may be useful for caller to display information on failure.Separators Value class used with somePrettyPrinter
implementsTextBuffer TextBuffer is a class similar toStringBuffer
, with following differences: TextBuffer uses segments character arrays, to avoid having to do additional array copies when array is not big enough.VersionUtil Functionality for supporting exposing of componentVersion
s.