Uses of Class com.fasterxml.jackson.core.ObjectCodec (Jackson-core 2.13.0 API)
Date: 2021-09-30

## Uses of Class
com.fasterxml.jackson.core.ObjectCodec

- Packages that use ObjectCodec
  Package | Description
  --- | ---
  com.fasterxml.jackson.core | Main public API classes of the core streaming JSON processor: most importantly `JsonFactory` used 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.json | JSON-specific parser and generator implementation classes that Jackson defines and uses.
  com.fasterxml.jackson.core.json.async | Non-blocking ("async") JSON parser implementation.
  com.fasterxml.jackson.core.util | Utility classes used by Jackson Core functionality.

- - ### Uses of ObjectCodec in com.fasterxml.jackson.core

    Fields in com.fasterxml.jackson.core declared as ObjectCodec
    Modifier and Type | Field and Description
    --- | ---
    `protected ObjectCodec` | JsonFactory.`_objectCodec` Object that implements conversion functionality between Java objects and JSON content.

    Methods in com.fasterxml.jackson.core that return ObjectCodec
    Modifier and Type | Method and Description
    --- | ---
    `protected ObjectCodec` | JsonParser.`_codec()`
    `abstract ObjectCodec` | JsonParser.`getCodec()` Accessor for `ObjectCodec` associated with this parser, if any.
    `abstract ObjectCodec` | JsonGenerator.`getCodec()` Method for accessing the object used for writing Java object as JSON content (using method `JsonGenerator.writeObject(java.lang.Object)`).
    `ObjectCodec` | JsonFactory.`getCodec()`

    Methods in com.fasterxml.jackson.core with parameters of type ObjectCodec
    Modifier and Type | Method and Description
    --- | ---
    `abstract void` | JsonParser.`setCodec(ObjectCodec oc)` Setter that allows defining `ObjectCodec` associated with this parser, if any.
    `abstract JsonGenerator` | JsonGenerator.`setCodec(ObjectCodec oc)` Method that can be called to set or reset the object to use for writing Java objects as JsonContent (using method `JsonGenerator.writeObject(java.lang.Object)`).
    `JsonFactory` | JsonFactory.`setCodec(ObjectCodec oc)` Method for associating a `ObjectCodec` (typically a `com.fasterxml.jackson.databind.ObjectMapper`) with this factory (and more importantly, parsers and generators it constructs).
    `JsonParser` | TreeNode.`traverse(ObjectCodec codec)` Same as `TreeNode.traverse()`, but additionally passes `ObjectCodec` to use if `JsonParser.readValueAs(Class)` is used (otherwise caller must call `JsonParser.setCodec(com.fasterxml.jackson.core.ObjectCodec)` on response explicitly).

    Constructors in com.fasterxml.jackson.core with parameters of type ObjectCodec
    Constructor and Description
    `JsonFactory(JsonFactory src, ObjectCodec codec)` Constructor used when copy()ing a factory instance.
    `JsonFactory(ObjectCodec oc)`

  - ### Uses of ObjectCodec in com.fasterxml.jackson.core.base

    Fields in com.fasterxml.jackson.core.base declared as ObjectCodec
    Modifier and Type | Field and Description
    --- | ---
    `protected ObjectCodec` | GeneratorBase.`_objectCodec`

    Methods in com.fasterxml.jackson.core.base that return ObjectCodec
    Modifier and Type | Method and Description
    --- | ---
    `ObjectCodec` | GeneratorBase.`getCodec()`

    Methods in com.fasterxml.jackson.core.base with parameters of type ObjectCodec
    Modifier and Type | Method and Description
    --- | ---
    `JsonGenerator` | GeneratorBase.`setCodec(ObjectCodec oc)`

    Constructors in com.fasterxml.jackson.core.base with parameters of type ObjectCodec
    Constructor and Description
    `GeneratorBase(int features, ObjectCodec codec)`
    `GeneratorBase(int features, ObjectCodec codec, JsonWriteContext ctxt)`

  - ### Uses of ObjectCodec in com.fasterxml.jackson.core.json

    Fields in com.fasterxml.jackson.core.json declared as ObjectCodec
    Modifier and Type | Field and Description
    --- | ---
    `protected ObjectCodec` | ReaderBasedJsonParser.`_objectCodec`
    `protected ObjectCodec` | UTF8DataInputJsonParser.`_objectCodec` Codec used for data binding when (if) requested; typically full `ObjectMapper`, but that abstract is not part of core package.
    `protected ObjectCodec` | UTF8StreamJsonParser.`_objectCodec` Codec used for data binding when (if) requested; typically full `ObjectMapper`, but that abstract is not part of core package.

    Methods in com.fasterxml.jackson.core.json that return ObjectCodec
    Modifier and Type | Method and Description
    --- | ---
    `ObjectCodec` | ReaderBasedJsonParser.`getCodec()`
    `ObjectCodec` | UTF8DataInputJsonParser.`getCodec()`
    `ObjectCodec` | UTF8StreamJsonParser.`getCodec()`

    Methods in com.fasterxml.jackson.core.json with parameters of type ObjectCodec
    Modifier and Type | Method and Description
    --- | ---
    `JsonParser` | ByteSourceJsonBootstrapper.`constructParser(int parserFeatures, ObjectCodec codec, ByteQuadsCanonicalizer rootByteSymbols, CharsToNameCanonicalizer rootCharSymbols, int factoryFeatures)`
    `void` | ReaderBasedJsonParser.`setCodec(ObjectCodec c)`
    `void` | UTF8DataInputJsonParser.`setCodec(ObjectCodec c)`
    `void` | UTF8StreamJsonParser.`setCodec(ObjectCodec c)`

    Constructors in com.fasterxml.jackson.core.json with parameters of type ObjectCodec
    Constructor and Description
    `JsonGeneratorImpl(IOContext ctxt, int features, ObjectCodec codec)`
    `ReaderBasedJsonParser(IOContext ctxt, int features, Reader r, ObjectCodec codec, CharsToNameCanonicalizer st)` Constructor called when input comes as a `Reader`, and buffer allocation can be done using default mechanism.
    `ReaderBasedJsonParser(IOContext ctxt, int features, Reader r, ObjectCodec codec, CharsToNameCanonicalizer st, char[] inputBuffer, int start, int end, boolean bufferRecyclable)` Constructor called when caller wants to provide input buffer directly (or needs to, in case of bootstrapping having read some of contents) and it may or may not be recyclable use standard recycle context.
    `UTF8DataInputJsonParser(IOContext ctxt, int features, DataInput inputData, ObjectCodec codec, ByteQuadsCanonicalizer sym, int firstByte)`
    `UTF8JsonGenerator(IOContext ctxt, int features, ObjectCodec codec, OutputStream out)` Deprecated.
    `UTF8JsonGenerator(IOContext ctxt, int features, ObjectCodec codec, OutputStream out, byte[] outputBuffer, int outputOffset, boolean bufferRecyclable)` Deprecated.
    `UTF8JsonGenerator(IOContext ctxt, int features, ObjectCodec codec, OutputStream out, char quoteChar)`
    `UTF8JsonGenerator(IOContext ctxt, int features, ObjectCodec codec, OutputStream out, char quoteChar, byte[] outputBuffer, int outputOffset, boolean bufferRecyclable)`
    `UTF8StreamJsonParser(IOContext ctxt, int features, InputStream in, ObjectCodec codec, ByteQuadsCanonicalizer sym, byte[] inputBuffer, int start, int end, boolean bufferRecyclable)` Deprecated. Since 2.10
    `UTF8StreamJsonParser(IOContext ctxt, int features, InputStream in, ObjectCodec codec, ByteQuadsCanonicalizer sym, byte[] inputBuffer, int start, int end, int bytesPreProcessed, boolean bufferRecyclable)` Constructor called when caller wants to provide input buffer directly (or needs to, in case of bootstrapping having read some of contents) and it may or may not be recyclable use standard recycle context.
    `WriterBasedJsonGenerator(IOContext ctxt, int features, ObjectCodec codec, Writer w)` Deprecated.
    `WriterBasedJsonGenerator(IOContext ctxt, int features, ObjectCodec codec, Writer w, char quoteChar)`

  - ### Uses of ObjectCodec in com.fasterxml.jackson.core.json.async

    Methods in com.fasterxml.jackson.core.json.async that return ObjectCodec
    Modifier and Type | Method and Description
    --- | ---
    `ObjectCodec` | NonBlockingJsonParserBase.`getCodec()`

    Methods in com.fasterxml.jackson.core.json.async with parameters of type ObjectCodec
    Modifier and Type | Method and Description
    --- | ---
    `void` | NonBlockingJsonParserBase.`setCodec(ObjectCodec c)`

  - ### Uses of ObjectCodec in com.fasterxml.jackson.core.util

    Methods in com.fasterxml.jackson.core.util that return ObjectCodec
    Modifier and Type | Method and Description
    --- | ---
    `ObjectCodec` | JsonParserDelegate.`getCodec()`
    `ObjectCodec` | JsonGeneratorDelegate.`getCodec()`

    Methods in com.fasterxml.jackson.core.util with parameters of type ObjectCodec
    Modifier and Type | Method and Description
    --- | ---
    `void` | JsonParserDelegate.`setCodec(ObjectCodec c)`
    `JsonGenerator` | JsonGeneratorDelegate.`setCodec(ObjectCodec oc)`

Copyright © 2008–2021 FasterXML. All rights reserved.