Top Description Interfaces Classes
module jackson.core

Package com.fasterxml.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 can not 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
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).

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 2.16 recycling aspects are handled via RecyclerPool.
Helper entity used to control access to simple buffer recycling scheme used for some encoding, decoding tasks.
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
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
RequestPayload

Container object used to contain optional information on content being parsed, passed to com.fasterxml.jackson.core.JsonParseException in case of exception being thrown; this may be useful for caller to display information on failure.

public class
Separators

Value class used with some com.fasterxml.jackson.core.PrettyPrinter implements

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.
pack-priv class
ThreadLocalBufferManager

For issue [jackson-core#400] We keep a separate Set of all SoftReferences to BufferRecyclers which are (also) referenced using `ThreadLocals`.

public class
VersionUtil

Functionality for supporting exposing of component Versions.