|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fasterxml.jackson.core.JsonFactory
com.fasterxml.jackson.databind.MappingJsonFactory
public class MappingJsonFactory
Sub-class of 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.fasterxml.jackson.core.JsonFactory |
|---|
com.fasterxml.jackson.core.JsonFactory.Feature |
| Field Summary |
|---|
| Fields inherited from class com.fasterxml.jackson.core.JsonFactory |
|---|
_characterEscapes, _factoryFeatures, _generatorFeatures, _inputDecorator, _objectCodec, _outputDecorator, _parserFeatures, _recyclerRef, _rootByteSymbols, _rootCharSymbols, DEFAULT_FACTORY_FEATURE_FLAGS, DEFAULT_GENERATOR_FEATURE_FLAGS, DEFAULT_PARSER_FEATURE_FLAGS, FORMAT_NAME_JSON |
| Constructor Summary | |
|---|---|
MappingJsonFactory()
|
|
MappingJsonFactory(ObjectMapper mapper)
|
|
| Method Summary | |
|---|---|
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) |
com.fasterxml.jackson.core.format.MatchStrength |
hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc)
Sub-classes need to override this method (as of 1.8) |
| Methods inherited from class com.fasterxml.jackson.core.JsonFactory |
|---|
_createContext, _createJsonGenerator, _createJsonParser, _createJsonParser, _createJsonParser, _createUTF8JsonGenerator, _createWriter, _getBufferRecycler, _optimizedStreamFromURL, configure, configure, configure, createJsonGenerator, createJsonGenerator, createJsonGenerator, createJsonGenerator, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, disable, disable, disable, enable, enable, enable, getCharacterEscapes, getInputDecorator, getOutputDecorator, hasJSONFormat, isEnabled, isEnabled, isEnabled, setCharacterEscapes, setCodec, setInputDecorator, setOutputDecorator, version |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MappingJsonFactory()
public MappingJsonFactory(ObjectMapper mapper)
| Method Detail |
|---|
public final ObjectMapper getCodec()
getCodec in class com.fasterxml.jackson.core.JsonFactorypublic 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.JsonFactoryIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||