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.format |
Package that contains interfaces needed for dynamic, pluggable
format (auto)detection; as well as basic utility classes for
simple format detection functionality.
|
com.fasterxml.jackson.databind |
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode ), as well as
writing Java Objects and trees as JSON. |
Modifier and Type | Method and Description |
---|---|
JsonFactory |
JsonFactory.configure(JsonFactory.Feature f,
boolean state)
Method for enabling or disabling specified parser feature
(check
JsonParser.Feature for list of features) |
JsonFactory |
JsonFactory.configure(JsonGenerator.Feature f,
boolean state)
Method for enabling or disabling specified generator feature
(check
JsonGenerator.Feature for list of features) |
JsonFactory |
JsonFactory.configure(JsonParser.Feature f,
boolean state)
Method for enabling or disabling specified parser feature
(check
JsonParser.Feature for list of features) |
JsonFactory |
JsonFactory.copy()
Method for constructing a new
JsonFactory that has
the same settings as this instance, but is otherwise
independent (i.e. |
JsonFactory |
JsonFactory.disable(JsonFactory.Feature f)
Method for disabling specified parser features
(check
JsonFactory.Feature for list of features) |
JsonFactory |
JsonFactory.disable(JsonGenerator.Feature f)
Method for disabling specified generator feature
(check
JsonGenerator.Feature for list of features) |
JsonFactory |
JsonFactory.disable(JsonParser.Feature f)
Method for disabling specified parser features
(check
JsonParser.Feature for list of features) |
JsonFactory |
JsonFactory.enable(JsonFactory.Feature f)
Method for enabling specified parser feature
(check
JsonFactory.Feature for list of features) |
JsonFactory |
JsonFactory.enable(JsonGenerator.Feature f)
Method for enabling specified generator features
(check
JsonGenerator.Feature for list of features) |
JsonFactory |
JsonFactory.enable(JsonParser.Feature f)
Method for enabling specified parser feature
(check
JsonParser.Feature for list of features) |
JsonFactory |
ObjectCodec.getFactory()
Accessor for finding underlying data format factory
(
JsonFactory ) codec will use for data binding. |
JsonFactory |
ObjectCodec.getJsonFactory()
Deprecated.
Since 2.1: Use
ObjectCodec.getFactory() instead. |
JsonFactory |
JsonFactory.setCharacterEscapes(CharacterEscapes esc)
Method for defining custom escapes factory uses for
JsonGenerator s
it creates. |
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). |
JsonFactory |
JsonFactory.setInputDecorator(InputDecorator d)
Method for overriding currently configured input decorator
|
JsonFactory |
JsonFactory.setOutputDecorator(OutputDecorator d)
Method for overriding currently configured output decorator
|
JsonFactory |
JsonFactory.setRootValueSeparator(String sep)
Method that allows overriding String used for separating root-level
JSON values (default is single space character)
|
Constructor and Description |
---|
JsonFactory(JsonFactory src,
ObjectCodec codec)
Constructor used when copy()ing a factory instance.
|
Modifier and Type | Field and Description |
---|---|
protected JsonFactory[] |
DataFormatDetector._detectors
Ordered list of factories which both represent data formats to
detect (in precedence order, starting with highest) and are used
for actual detection.
|
protected JsonFactory |
DataFormatMatcher._match
Factory that produced sufficient match (if any)
|
Modifier and Type | Method and Description |
---|---|
JsonFactory |
DataFormatMatcher.getMatch()
Accessor for
JsonFactory that represents format that data matched. |
Modifier and Type | Method and Description |
---|---|
DataFormatMatcher |
InputAccessor.Std.createMatcher(JsonFactory match,
MatchStrength matchStrength) |
Constructor and Description |
---|
DataFormatDetector(JsonFactory... detectors) |
DataFormatMatcher(InputStream in,
byte[] buffered,
int bufferedStart,
int bufferedLength,
JsonFactory match,
MatchStrength strength) |
Constructor and Description |
---|
DataFormatDetector(Collection<JsonFactory> detectors) |
Modifier and Type | Class and Description |
---|---|
class |
MappingJsonFactory
Sub-class of
JsonFactory that will create a proper
ObjectCodec to allow seam-less conversions between
JSON content and Java objects (POJOs). |
Modifier and Type | Field and Description |
---|---|
protected JsonFactory |
ObjectWriter._generatorFactory
Factory used for constructing
JsonGenerator s |
protected JsonFactory |
ObjectMapper._jsonFactory
Factory used to create
JsonParser and JsonGenerator
instances as necessary. |
protected JsonFactory |
ObjectReader._parserFactory
Factory used for constructing
JsonGenerator s |
Modifier and Type | Method and Description |
---|---|
JsonFactory |
MappingJsonFactory.copy() |
JsonFactory |
ObjectWriter.getFactory() |
JsonFactory |
ObjectReader.getFactory() |
JsonFactory |
ObjectMapper.getFactory()
Method that can be used to get hold of
JsonFactory that this
mapper uses if it needs to construct JsonParser s
and/or JsonGenerator s. |
JsonFactory |
ObjectMapper.getJsonFactory()
Deprecated.
Since 2.1: Use
ObjectMapper.getFactory() instead |
Modifier and Type | Method and Description |
---|---|
protected ObjectReader |
ObjectReader._new(ObjectReader base,
JsonFactory f)
Overridable factory method called by various "withXxx()" methods
|
protected ObjectWriter |
ObjectWriter._new(ObjectWriter base,
JsonFactory f)
Overridable factory method called by various "withXxx()" methods
|
boolean |
SerializationConfig.isEnabled(JsonGenerator.Feature f,
JsonFactory factory)
Accessor method that first checks if we have any overrides
for feature, and only if not, checks state of passed-in
factory.
|
boolean |
DeserializationConfig.isEnabled(JsonParser.Feature f,
JsonFactory factory) |
ObjectWriter |
ObjectWriter.with(JsonFactory f) |
ObjectReader |
ObjectReader.with(JsonFactory f)
Method for constructing a new reader instance with configuration that uses
passed
JsonFactory for constructing underlying Readers. |
Constructor and Description |
---|
MappingJsonFactory(JsonFactory src,
ObjectMapper mapper) |
ObjectMapper(JsonFactory jf)
Constructs instance that uses specified
JsonFactory
for constructing necessary JsonParser s and/or
JsonGenerator s. |
ObjectMapper(JsonFactory jf,
DefaultSerializerProvider sp,
DefaultDeserializationContext dc)
Constructs instance that uses specified
JsonFactory
for constructing necessary JsonParser s and/or
JsonGenerator s, and uses given providers for accessing
serializers and deserializers. |
ObjectReader(ObjectReader base,
JsonFactory f) |
ObjectWriter(ObjectWriter base,
JsonFactory f) |
Copyright © 2019 JBoss by Red Hat. All rights reserved.