public class MappingJsonFactory extends JsonFactory
JsonFactory
that will create a proper
ObjectCodec
to allow seamless 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._characterEscapes, _generatorFeatures, _inputDecorator, _objectCodec, _outputDecorator, _parserFeatures, _recyclerRef, _rootByteSymbols, _rootCharSymbols, FORMAT_NAME_JSON
构造器和说明 |
---|
MappingJsonFactory() |
MappingJsonFactory(ObjectMapper mapper) |
限定符和类型 | 方法和说明 |
---|---|
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 (as of 1.8)
|
MatchStrength |
hasFormat(InputAccessor acc)
Sub-classes need to override this method (as of 1.8)
|
_createContext, _createJsonGenerator, _createJsonParser, _createJsonParser, _createJsonParser, _createUTF8JsonGenerator, _createWriter, _getBufferRecycler, _optimizedStreamFromURL, configure, configure, createJsonGenerator, createJsonGenerator, createJsonGenerator, createJsonGenerator, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, disable, disable, disableGeneratorFeature, disableParserFeature, enable, enable, enableGeneratorFeature, enableParserFeature, getCharacterEscapes, getInputDecorator, getOutputDecorator, hasJSONFormat, isEnabled, isEnabled, isGeneratorFeatureEnabled, isParserFeatureEnabled, setCharacterEscapes, setCodec, setGeneratorFeature, setInputDecorator, setOutputDecorator, setParserFeature, version
public MappingJsonFactory()
public MappingJsonFactory(ObjectMapper mapper)
public final ObjectMapper getCodec()
getCodec
在类中 JsonFactory
public String getFormatName()
getFormatName
在类中 JsonFactory
public MatchStrength hasFormat(InputAccessor acc) throws IOException
hasFormat
在类中 JsonFactory
IOException