Top Description Interfaces Classes
module tools.jackson.core

Package tools.jackson.core.util


Utility classes used by Jackson Core functionality.

Interface Summary

Modifier and TypeInterface and Description
public interface
Instantiatable<T>

Add-on interface used to indicate things that may be "blueprint" objects which cannot be used as is, but are used for creating usable per-process (serialization, deserialization) instances, using createInstance method.

public interface
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.

public interface
JsonGeneratorDecorator

Simple interface to allow adding decorators around JsonGenerators.

public interface
Named

Simple tag interface used primarily to allow databind to pass entities with name without needing to expose more details of implementation.

public interface
RecyclerPool<
Type of Objects pool recycles
P extends RecyclerPool.WithPool<P>
>

API for object pools that control creation and possible reuse of objects that are costly to create (often things like encoding/decoding buffers).

public interface
Snapshottable<T>

Interface that defines one method (see snapshot) for ensuring that we get an instance that does not allow modifying state of `this` instance.

Class Summary

Modifier and TypeClass and Description
public class
BufferRecycler

This is a small utility class, whose main functionality is to allow simple reuse of raw byte/char buffers.

public class
BufferRecyclers

Deprecated Since 3.0
Placeholder for deprecated type from 2.x: to be removed before 3.0 release
public class
ByteArrayBuilder

Helper class that is similar to java.io.ByteArrayOutputStream in usage, but more geared to Jackson use cases internally.

public class
DefaultIndenter

Default linefeed-based indenter, used by DefaultPrettyPrinter (unless overridden).

public class
DefaultPrettyPrinter

Default PrettyPrinter implementation that uses 2-space indentation with platform-default linefeeds.

public abstract class
InternalJacksonUtil

Internal Use Only.

public class
InternCache

Singleton class that adds a simple first-level cache in front of regular String.intern() functionality.

public class
JacksonFeatureSet<F extends JacksonFeature>

Container similar to java.util.EnumSet meant for storing sets of JacksonFeatures (usually java.lang.Enums): main difference being that these sets are immutable.

public class
public class
JsonParserDelegate

Helper class that implements delegation pattern for JsonParser, to allow for simple overridability of basic parsing functionality.

public class
JsonParserSequence

Helper class that can be used to sequence multiple physical JsonParsers to create a single logical sequence of tokens, as a single JsonParser.

public class
JsonpCharacterEscapes

Convenience CharacterEscapes implementation that escapes Unicode characters `0x2028` and `0x2029` (in addition to characters escaped otherwise), which are apparently considered linefeeds as per newer Javascript specifications, and consequently problematic when using JSONP (see https://en.wikipedia.org/wiki/JSONP).

public class
JsonRecyclerPools

Set of RecyclerPool implementations to be used by the default JSON-backed JsonFactory for recycling BufferRecycler containers.

public class
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.

public class
public class
Separators

Value class used with some tools.jackson.core.PrettyPrinter implements

public class
SimpleStreamReadContext

Basic implementation of TokenStreamContext useful for most format backend JsonParser implementations (with notable exception of JSON that needs bit more advanced state).

public class
SimpleStreamWriteContext

Basic implementation of TokenStreamContext useful for most format backend JsonGenerator implementations (with notable exception of JSON that needs bit more advanced state).

public class
TextBuffer

TextBuffer is a class similar to java.lang.StringBuffer, with following differences:

  • TextBuffer uses segments character arrays, to avoid having to do additional array copies when array is not big enough. This means that only reallocating that is necessary is done only once: if and when caller wants to access contents in a linear array (char[], String).
  • TextBuffer can also be initialized in "shared mode", in which it will just act as a wrapper to a single char array managed by another object (like parser that owns it)
  • TextBuffer is not synchronized.
public class
VersionUtil

Functionality for supporting exposing of component Versions.