public class MappingJsonFactory
extends com.fasterxml.jackson.core.JsonFactory
JsonFactory
that will create a proper
ObjectCodec
to allow seam-less conversions between
JSON content and Java objects (POJOs).
The only addition to regular JsonFactory
currently
is that ObjectMapper
is constructed and passed as
the codec to use._byteSymbolCanonicalizer, _characterEscapes, _factoryFeatures, _generatorFeatures, _inputDecorator, _maximumNonEscapedChar, _objectCodec, _outputDecorator, _parserFeatures, _quoteChar, _rootCharSymbols, _rootValueSeparator, DEFAULT_FACTORY_FEATURE_FLAGS, DEFAULT_GENERATOR_FEATURE_FLAGS, DEFAULT_PARSER_FEATURE_FLAGS, DEFAULT_QUOTE_CHAR, DEFAULT_ROOT_VALUE_SEPARATOR, FORMAT_NAME_JSON
Constructor and Description |
---|
MappingJsonFactory() |
MappingJsonFactory(com.fasterxml.jackson.core.JsonFactory src,
ObjectMapper mapper) |
MappingJsonFactory(ObjectMapper mapper) |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.core.JsonFactory |
copy() |
ObjectMapper |
getCodec()
We'll override the method to return more specific type; co-variance
helps here
|
String |
getFormatName()
Sub-classes need to override this method
|
com.fasterxml.jackson.core.format.MatchStrength |
hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc)
Sub-classes need to override this method
|
_checkInvalidCopy, _createContentReference, _createContentReference, _createContext, _createContext, _createGenerator, _createNonBlockingContext, _createParser, _createParser, _createParser, _createParser, _createParser, _createUTF8Generator, _createWriter, _decorate, _decorate, _decorate, _decorate, _decorate, _getBufferRecycler, builder, canHandleBinaryNatively, canParseAsync, canUseCharArrays, canUseSchema, configure, configure, configure, createGenerator, createGenerator, createGenerator, createGenerator, createGenerator, createGenerator, createJsonGenerator, createJsonGenerator, createJsonGenerator, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createNonBlockingByteArrayParser, createNonBlockingByteBufferParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, disable, disable, disable, enable, enable, enable, getCharacterEscapes, getFormatGeneratorFeatures, getFormatParserFeatures, getFormatReadFeatureType, getFormatWriteFeatureType, getGeneratorFeatures, getInputDecorator, getOutputDecorator, getParserFeatures, getRootValueSeparator, hasJSONFormat, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, readResolve, rebuild, requiresCustomCodec, requiresPropertyOrdering, setCharacterEscapes, setCodec, setInputDecorator, setOutputDecorator, setRootValueSeparator, version
public MappingJsonFactory()
public MappingJsonFactory(ObjectMapper mapper)
public MappingJsonFactory(com.fasterxml.jackson.core.JsonFactory src, ObjectMapper mapper)
public final ObjectMapper getCodec()
getCodec
in class com.fasterxml.jackson.core.JsonFactory
public com.fasterxml.jackson.core.JsonFactory copy()
copy
in class com.fasterxml.jackson.core.JsonFactory
public String getFormatName()
getFormatName
in class com.fasterxml.jackson.core.JsonFactory
public com.fasterxml.jackson.core.format.MatchStrength hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc) throws IOException
hasFormat
in class com.fasterxml.jackson.core.JsonFactory
IOException
Copyright © 2008–2022 FasterXML. All rights reserved.