Uses of Class
com.fasterxml.jackson.core.JsonFactory
-
Packages that use JsonFactory Package Description com.fasterxml.jackson.core Main public API classes of the core streaming JSON processor: most importantlyJsonFactoryused 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.com.fasterxml.jackson.databind.json -
-
Uses of JsonFactory in com.fasterxml.jackson.core
Classes in com.fasterxml.jackson.core with type parameters of type JsonFactory Modifier and Type Class Description classTSFBuilder<F extends JsonFactory,B extends TSFBuilder<F,B>>Since 2.10, Builder class is offered for creating token stream factories with difference configurations: with 3.x they will be fully immutable.Methods in com.fasterxml.jackson.core that return JsonFactory Modifier and Type Method Description JsonFactoryJsonFactoryBuilder. build()JsonFactoryJsonFactory. configure(JsonFactory.Feature f, boolean state)Deprecated.since 2.10 useTSFBuilder.configure(JsonFactory.Feature, boolean)insteadJsonFactoryJsonFactory. configure(JsonGenerator.Feature f, boolean state)Method for enabling or disabling specified generator feature (checkJsonGenerator.Featurefor list of features)JsonFactoryJsonFactory. configure(JsonParser.Feature f, boolean state)Method for enabling or disabling specified parser feature (checkJsonParser.Featurefor list of features)JsonFactoryJsonFactory. copy()Method for constructing a newJsonFactorythat has the same settings as this instance, but is otherwise independent (i.e.JsonFactoryJsonFactory. disable(JsonFactory.Feature f)Deprecated.since 2.10 useTSFBuilder.configure(JsonFactory.Feature, boolean)insteadJsonFactoryJsonFactory. disable(JsonGenerator.Feature f)Method for disabling specified generator feature (checkJsonGenerator.Featurefor list of features)JsonFactoryJsonFactory. disable(JsonParser.Feature f)Method for disabling specified parser features (checkJsonParser.Featurefor list of features)JsonFactoryJsonFactory. enable(JsonFactory.Feature f)Deprecated.since 2.10 useTSFBuilder.configure(JsonFactory.Feature, boolean)insteadJsonFactoryJsonFactory. enable(JsonGenerator.Feature f)Method for enabling specified generator features (checkJsonGenerator.Featurefor list of features)JsonFactoryJsonFactory. enable(JsonParser.Feature f)Method for enabling specified parser feature (checkJsonParser.Featurefor list of features)JsonFactoryObjectCodec. getFactory()Accessor for finding underlying data format factory (JsonFactory) codec will use for data binding.JsonFactoryObjectCodec. getJsonFactory()Deprecated.UseObjectCodec.getFactory()instead.JsonFactoryJsonFactory. setCharacterEscapes(CharacterEscapes esc)Method for defining custom escapes factory uses forJsonGenerators it creates.JsonFactoryJsonFactory. setCodec(ObjectCodec oc)Method for associating aObjectCodec(typically acom.fasterxml.jackson.databind.ObjectMapper) with this factory (and more importantly, parsers and generators it constructs).JsonFactoryJsonFactory. setInputDecorator(InputDecorator d)Deprecated.Since 2.10 useTSFBuilder.inputDecorator(InputDecorator)insteadJsonFactoryJsonFactory. setOutputDecorator(OutputDecorator d)Deprecated.Since 2.10 useTSFBuilder.outputDecorator(OutputDecorator)insteadJsonFactoryJsonFactory. setRootValueSeparator(String sep)Method that allows overriding String used for separating root-level JSON values (default is single space character)JsonFactoryJsonFactory. setStreamReadConstraints(StreamReadConstraints src)Method for overridingStreamReadConstraintsdefined for this factory.Constructors in com.fasterxml.jackson.core with parameters of type JsonFactory Constructor Description JsonFactory(JsonFactory src, ObjectCodec codec)Constructor used when copy()ing a factory instance.JsonFactoryBuilder(JsonFactory base)TSFBuilder(JsonFactory base) -
Uses of JsonFactory in com.fasterxml.jackson.core.format
Fields in com.fasterxml.jackson.core.format declared as JsonFactory Modifier and Type Field Description protected JsonFactory[]DataFormatDetector. _detectorsOrdered list of factories which both represent data formats to detect (in precedence order, starting with highest) and are used for actual detection.protected JsonFactoryDataFormatMatcher. _matchFactory that produced sufficient match (if any)Methods in com.fasterxml.jackson.core.format that return JsonFactory Modifier and Type Method Description JsonFactoryDataFormatMatcher. getMatch()Accessor forJsonFactorythat represents format that data matched.Methods in com.fasterxml.jackson.core.format with parameters of type JsonFactory Modifier and Type Method Description DataFormatMatcherInputAccessor.Std. createMatcher(JsonFactory match, MatchStrength matchStrength)Constructors in com.fasterxml.jackson.core.format with parameters of type JsonFactory Constructor Description DataFormatDetector(JsonFactory... detectors)DataFormatMatcher(InputStream in, byte[] buffered, int bufferedStart, int bufferedLength, JsonFactory match, MatchStrength strength)Constructor parameters in com.fasterxml.jackson.core.format with type arguments of type JsonFactory Constructor Description DataFormatDetector(Collection<JsonFactory> detectors) -
Uses of JsonFactory in com.fasterxml.jackson.databind
Subclasses of JsonFactory in com.fasterxml.jackson.databind Modifier and Type Class Description classMappingJsonFactorySub-class ofJsonFactorythat will create a properObjectCodecto allow seam-less conversions between JSON content and Java objects (POJOs).Fields in com.fasterxml.jackson.databind declared as JsonFactory Modifier and Type Field Description protected JsonFactoryObjectWriter. _generatorFactoryFactory used for constructingJsonGeneratorsprotected JsonFactoryObjectMapper. _jsonFactoryFactory used to createJsonParserandJsonGeneratorinstances as necessary.protected JsonFactoryObjectReader. _parserFactoryFactory used for constructingJsonGeneratorsMethods in com.fasterxml.jackson.databind that return JsonFactory Modifier and Type Method Description JsonFactoryMappingJsonFactory. copy()JsonFactoryObjectMapper. getFactory()JsonFactoryObjectReader. getFactory()JsonFactoryObjectWriter. getFactory()JsonFactoryObjectMapper. tokenStreamFactory()Method that can be used to get hold ofJsonFactorythat this mapper uses if it needs to constructJsonParsers and/orJsonGenerators.Methods in com.fasterxml.jackson.databind with parameters of type JsonFactory Modifier and Type Method Description protected ObjectReaderObjectReader. _new(ObjectReader base, JsonFactory f)Overridable factory method called by various "withXxx()" methodsprotected ObjectWriterObjectWriter. _new(ObjectWriter base, JsonFactory f)Overridable factory method called by various "withXxx()" methodsObjectMapperObjectMapper. copyWith(JsonFactory factory)Method for creating a newObjectMapper.booleanDeserializationConfig. isEnabled(JsonParser.Feature f, JsonFactory factory)booleanSerializationConfig. 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.ObjectReaderObjectReader. with(JsonFactory f)Method for constructing a new reader instance with configuration that uses passedJsonFactoryfor constructing underlying Readers.ObjectWriterObjectWriter. with(JsonFactory f)Constructors in com.fasterxml.jackson.databind with parameters of type JsonFactory Constructor Description MappingJsonFactory(JsonFactory src, ObjectMapper mapper)ObjectMapper(JsonFactory jf)Constructs instance that uses specifiedJsonFactoryfor constructing necessaryJsonParsers and/orJsonGenerators.ObjectMapper(JsonFactory jf, DefaultSerializerProvider sp, DefaultDeserializationContext dc)Constructs instance that uses specifiedJsonFactoryfor constructing necessaryJsonParsers and/orJsonGenerators, and uses given providers for accessing serializers and deserializers.ObjectMapper(ObjectMapper src, JsonFactory factory)Copy-constructor, mostly used to supportObjectMapper.copyWith(JsonFactory).ObjectReader(ObjectReader base, JsonFactory f)ObjectWriter(ObjectWriter base, JsonFactory f) -
Uses of JsonFactory in com.fasterxml.jackson.databind.json
Methods in com.fasterxml.jackson.databind.json that return JsonFactory Modifier and Type Method Description JsonFactoryJsonMapper. getFactory()Methods in com.fasterxml.jackson.databind.json with parameters of type JsonFactory Modifier and Type Method Description static JsonMapper.BuilderJsonMapper. builder(JsonFactory streamFactory)Constructors in com.fasterxml.jackson.databind.json with parameters of type JsonFactory Constructor Description JsonMapper(JsonFactory f)
-