Package org.codehaus.jackson.util
Utility classes used by Jackson Core functionality.
-
Class Summary Class Description BufferRecycler This is a small utility class, whose main functionality is to allow simple reuse of raw byte/char buffers.ByteArrayBuilder Helper class that is similar toByteArrayOutputStream
in usage, but more geared to Jackson use cases internally.CharTypes DefaultPrettyPrinter DefaultPrettyPrinter
implementation that uses 2-space indentation with platform-default linefeeds.DefaultPrettyPrinter.FixedSpaceIndenter This is a very simple indenter that only every adds a single space for indentation.DefaultPrettyPrinter.Lf2SpacesIndenter Default linefeed-based indenter uses system-specific linefeeds and 2 spaces for indentation per level.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.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.TextBuffer 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.TokenBuffer Utility class used for efficient storage ofJsonToken
sequences, needed for temporary buffering.TokenBuffer.Parser TokenBuffer.Segment Individual segment of TokenBuffer that can store up to 16 tokens (limited by 4 bits per token type marker requirement).VersionUtil Functionality for supporting exposing of componentVersion
s. -
Enum Summary Enum Description BufferRecycler.ByteBufferType BufferRecycler.CharBufferType