Top Deprecated
Jackson-core 2.16.0

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description

Returns:

I/O context created
com.fasterxml.jackson.core.JsonFactory._createContext
(Object
"Raw" source/target reference
rawContentRef
,
boolean
Whether input/output buffer is managed by this factory or not
resourceManaged
)

Since 2.13

Returns:

This factory instance (to allow call chaining)
com.fasterxml.jackson.core.JsonFactory.configure
(JsonFactory.Feature
Feature to enable/disable
f
,
boolean
Whether to enable or disable the feature
state
)

since 2.10 use JsonFactoryBuilder#configure(JsonFactory.Feature, boolean) instead

Returns:

Generator constructed
com.fasterxml.jackson.core.JsonFactory.createJsonGenerator
(OutputStream
OutputStream to use for writing JSON content
out
,
JsonEncoding
Character encoding to use
enc
)

Since 2.2, use createGenerator(OutputStream, JsonEncoding) instead.

Returns:

Generator constructed
com.fasterxml.jackson.core.JsonFactory.createJsonGenerator
(Writer
Writer to use for writing JSON content
out
)

Since 2.2, use createGenerator(Writer) instead.

Returns:

Generator constructed
com.fasterxml.jackson.core.JsonFactory.createJsonGenerator
(OutputStream
OutputStream to use for writing JSON content
out
)

Since 2.2, use createGenerator(OutputStream) instead.

Returns:

Parser constructed
com.fasterxml.jackson.core.JsonFactory.createJsonParser
(File
File that contains JSON content to parse
f
)

Since 2.2, use createParser(File) instead.

Returns:

Parser constructed
com.fasterxml.jackson.core.JsonFactory.createJsonParser
(URL
URL pointing to resource that contains JSON content to parse
url
)

Since 2.2, use createParser(URL) instead.

Returns:

Parser constructed
com.fasterxml.jackson.core.JsonFactory.createJsonParser
(InputStream
InputStream to use for reading JSON content to parse
in
)

Since 2.2, use createParser(InputStream) instead.

Returns:

Parser constructed
com.fasterxml.jackson.core.JsonFactory.createJsonParser
(Reader
Reader to use for reading JSON content to parse
r
)

Since 2.2, use createParser(Reader) instead.

Returns:

Parser constructed
com.fasterxml.jackson.core.JsonFactory.createJsonParser
(byte[]
Input content to parse
data
)

Since 2.2, use createParser(byte[]) instead.

Returns:

Parser constructed
com.fasterxml.jackson.core.JsonFactory.createJsonParser
(byte[]
Buffer that contains data to parse
data
,
int
Offset of the first data byte within buffer
offset
,
int
Length of contents to parse within buffer
len
)

Since 2.2, use createParser(byte[], int, int) instead.

Returns:

Parser constructed
com.fasterxml.jackson.core.JsonFactory.createJsonParser
(String
Input content to parse
content
)

Since 2.2, use createParser(String) instead.

Returns:

This factory instance (to allow call chaining)
com.fasterxml.jackson.core.JsonFactory.disable
(JsonFactory.Feature
Feature to disable
f
)

since 2.10 use JsonFactoryBuilder#configure(JsonFactory.Feature, boolean) instead

Returns:

This factory instance (to allow call chaining)
com.fasterxml.jackson.core.JsonFactory.enable
(JsonFactory.Feature
Feature to enable
f
)

since 2.10 use JsonFactoryBuilder#configure(JsonFactory.Feature, boolean) instead

Returns:

This factory instance (to allow call chaining)
com.fasterxml.jackson.core.JsonFactory.setInputDecorator
(InputDecorator
Decorator to configure for this factory, if any (null if none)
d
)

Since 2.10 use JsonFactoryBuilder#inputDecorator(InputDecorator) instead

Returns:

This factory instance (to allow call chaining)
com.fasterxml.jackson.core.JsonFactory.setOutputDecorator
(OutputDecorator
Output decorator to use, if any
d
)

Since 2.10 use JsonFactoryBuilder#outputDecorator(OutputDecorator) instead

Returns:

This generator, to allow call chaining
com.fasterxml.jackson.core.JsonGenerator.setFeatureMask
(int
Bitmask that defines which Features are enabled and which disabled
values
)

Since 2.7, use overrideStdFeatures(int, int) instead -- remove from 2.9

com.fasterxml.jackson.core.JsonGenerator.writeStartArray(int
Number of elements this array will have: actual number of values written (before matching call to writeEndArray() MUST match; generator MAY verify this is the case (and SHOULD if format itself encodes length)
size
)

Since 2.12 Use writeStartArray(Object, int) instead

com.fasterxml.jackson.core.JsonLocation.JsonLocation(Object srcRef, long totalChars, int lineNr, int columnNr)

com.fasterxml.jackson.core.JsonLocation.JsonLocation(Object srcRef, long totalBytes, long totalChars, int lineNr, int columnNr)

Returns:

Source reference this location was constructed with, if any; null if none
com.fasterxml.jackson.core.JsonLocation.getSourceRef
()

Since 2.13 Use contentReference instead

Returns:

int matching one of constants from JsonTokenId.
com.fasterxml.jackson.core.JsonParser.getCurrentTokenId
()

Since 2.12 use currentTokenId instead

Returns:

This parser, to allow call chaining
com.fasterxml.jackson.core.JsonParser.setFeatureMask
(int
Bit mask that defines set of features to enable
mask
)

Since 2.7, use overrideStdFeatures(int, int) instead

Returns:

Location pointing to the point where the context start marker was found (or written); never null.
com.fasterxml.jackson.core.JsonStreamContext.getStartLocation
(Object
Source reference needed to construct location instance
srcRef
)

Since 2.13 use startLocation instead

Returns:

Type description String
com.fasterxml.jackson.core.JsonStreamContext.getTypeDesc
()

Since 2.8 use typeDesc instead

com.fasterxml.jackson.core.StreamReadConstraints.StreamReadConstraints(final int maxNestingDepth, final long maxDocLen, final int maxNumLen, final int maxStringLen)

com.fasterxml.jackson.core.Version.Version(int
Major version number
major
,
int
Minor version number
minor
,
int
patch level of version
patchLevel
,
String
Optional additional string qualifier
snapshotInfo
)

Use variant that takes group and artifact ids

Returns:

True if this instance is the one returned by call to unknownVersion()
com.fasterxml.jackson.core.Version.isUknownVersion
()

Since 2.7 use correctly spelled method isUnknownVersion()

com.fasterxml.jackson.core.base.GeneratorBase.setFeatureMask(int
Bitmask that defines which Features are enabled and which disabled
newMask
)

com.fasterxml.jackson.core.base.ParserBase.setFeatureMask(int
Bit mask that defines set of features to enable
newMask
)

com.fasterxml.jackson.core.base.ParserMinimalBase._reportInvalidEOF(String
Addition message snippet to append to base exception message
msg
)

Since 2.8 use _reportInvalidEOF(String, JsonToken) instead

com.fasterxml.jackson.core.filter.FilteringGeneratorDelegate.FilteringGeneratorDelegate(JsonGenerator
Generator to delegate calls to
d
,
TokenFilter
Filter to use
f
,
boolean
Whether to include path or not
includePath
,
boolean
Whether to allow multiple matches
allowMultipleMatches
)

since 2.12 Use the constructor that takes TokenFilter.Inclusion argument instead.

Returns:

Copy of array of 16 upper-case hexadecimal characters as bytes
com.fasterxml.jackson.core.io.CharTypes.copyHexBytes
()

Since 2.14 Use copyHexBytes(boolean) instead

Returns:

Copy of array of 16 upper-case hexadecimal characters
com.fasterxml.jackson.core.io.CharTypes.copyHexChars
()

Since 2.14 Use copyHexChars(boolean) instead

com.fasterxml.jackson.core.io.ContentReference.construct(boolean isContentTextual, Object rawContent, int offset, int length)

Since 2.16. Use construct(boolean, Object, int, int, ErrorReportConfiguration) instead.

com.fasterxml.jackson.core.io.IOContext.IOContext(StreamReadConstraints
constraints for streaming reads
src
,
BufferRecycler
BufferRecycler to use, if any (null if none)
br
,
ContentReference
Input source reference for location reporting
contentRef
,
boolean
Whether input source is managed (owned) by Jackson library
managedResource
)

Since 2.16. Use IOContext(StreamReadConstraints, StreamWriteConstraints, ErrorReportConfiguration, BufferRecycler, ContentReference, boolean) instead.

com.fasterxml.jackson.core.io.IOContext.IOContext(BufferRecycler
BufferRecycler to use, if any (null if none)
br
,
ContentReference
Input source reference for location reporting
contentRef
,
boolean
Whether input source is managed (owned) by Jackson library
managedResource
)

Since 2.15. Use IOContext(StreamReadConstraints, StreamWriteConstraints, ErrorReportConfiguration, BufferRecycler, ContentReference, boolean) instead.

Returns:

"Raw" source reference
com.fasterxml.jackson.core.io.IOContext.getSourceReference
()

Since 2.13, use contentReference() instead

com.fasterxml.jackson.core.json.JsonReadContext.getStartLocation(Object
Source reference needed to construct location instance
rawSrc
)

Returns:

Context instance created
com.fasterxml.jackson.core.json.JsonWriteContext.createRootContext
()

Since 2.3; use method that takes argument

com.fasterxml.jackson.core.json.UTF8JsonGenerator.UTF8JsonGenerator(IOContext ctxt, int features, ObjectCodec codec, OutputStream out, byte[] outputBuffer, int outputOffset, boolean bufferRecyclable)

com.fasterxml.jackson.core.json.UTF8StreamJsonParser.UTF8StreamJsonParser(IOContext
I/O context to use
ctxt
,
int
Standard stream read features enabled
features
,
InputStream
InputStream used for reading actual content, if any; null if none
in
,
ObjectCodec
ObjectCodec to delegate object deserialization to
codec
,
ByteQuadsCanonicalizer
Name canonicalizer to use
sym
,
byte[]
Input buffer to read initial content from (before Reader)
inputBuffer
,
int
Pointer in inputBuffer that has the first content character to decode
start
,
int
Pointer past the last content character in inputBuffer
end
,
boolean
Whether inputBuffer passed is managed by Jackson core (and thereby needs recycling)
bufferRecyclable
)

Since 2.10

Returns:

Root instance to use for constructing new child instances
com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer.createRoot
()

Since 2.16 use createRoot(TokenStreamFactory) instead

Returns:

Root instance to use for constructing new child instances
com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer.createRoot
(int
Seed for hash value calculation
seed
)

Since 2.16 use createRoot(TokenStreamFactory) instead

Returns:

Actual canonicalizer instance that can be used by a parser
com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer.makeChild
(int
Configuration flags (ignored)
flags
)

Since 2.16 use makeChild() instead.

Returns:

Type-erased class of something not usable at this point
com.fasterxml.jackson.core.type.ResolvedType.getParameterSource
()

Since 2.7: does not have meaning as parameters depend on type resolved.

com.fasterxml.jackson.core.util.BufferRecyclers

Since 2.16 recycling aspects are handled via RecyclerPool.

Returns:

String encoded as UTF-8 bytes.
com.fasterxml.jackson.core.util.BufferRecyclers.encodeAsUTF8
(String
String to encode
text
)

Since 2.10 call JsonStringEncoder#getInstance() and then encodeAsUTF8()) instead. NOTE: was accidentally removed but reintroduced as deprecated in 2.12.5, to be removed from 3.0)

Returns:

BufferRecycler to use
com.fasterxml.jackson.core.util.BufferRecyclers.getBufferRecycler
()

Since 2.16 should use RecyclerPool abstraction instead of calling static methods of this class

Returns:

JsonStringEncoder instance to use.
com.fasterxml.jackson.core.util.BufferRecyclers.getJsonStringEncoder
()

Since 2.10 call JsonStringEncoder#getInstance() instead. NOTE: was accidentally removed but reintroduced as deprecated in 2.12.5, to be removed from 3.0)

Returns:

Quoted text as char[]
com.fasterxml.jackson.core.util.BufferRecyclers.quoteAsJsonText
(String
String to quote
rawText
)

Since 2.10 call JsonStringEncoder#getInstance() and then quoteAsString()) instead. NOTE: was accidentally removed but reintroduced as deprecated in 2.12.5, to be removed from 3.0)

com.fasterxml.jackson.core.util.BufferRecyclers.quoteAsJsonText(CharSequence
Textual content to quote
input
,
StringBuilder
Builder to append quoted content
output
)

Since 2.10 call JsonStringEncoder#getInstance() and then quoteAsString()) instead. NOTE: was accidentally removed but reintroduced as deprecated in 2.12.5, to be removed from 3.0)

Returns:

Quoted text as byte[]
com.fasterxml.jackson.core.util.BufferRecyclers.quoteAsJsonUTF8
(String
String to quote
rawText
)

Since 2.10 call JsonStringEncoder#getInstance() (and then quoteAsUTF8()) instead. NOTE: was accidentally removed but reintroduced as deprecated in 2.12.5, to be removed from 3.0)

com.fasterxml.jackson.core.util.DefaultPrettyPrinter.DefaultPrettyPrinter(String
String to use as root value separator
rootSeparator
)

in 2.16. Use the Separators API instead.

com.fasterxml.jackson.core.util.DefaultPrettyPrinter.DefaultPrettyPrinter(SerializableString
String to use as root value separator
rootSeparator
)

in 2.16. Use the Separators API instead.

Returns:

This pretty-printer instance (for call chaining)
com.fasterxml.jackson.core.util.DefaultPrettyPrinter.withRootSeparator
(String
Root-level value separator to use
rootSeparator
)

in 2.16. Use the Separators API instead.

Returns:

This pretty-printer instance (for call chaining)
com.fasterxml.jackson.core.util.DefaultPrettyPrinter.withSpacesInObjectEntries
()

in 2.16. Use the Separators API instead.

Returns:

This pretty-printer instance (for call chaining)
com.fasterxml.jackson.core.util.DefaultPrettyPrinter.withoutSpacesInObjectEntries
()

in 2.16. Use the Separators API instead.

com.fasterxml.jackson.core.util.JsonGeneratorDelegate.setFeatureMask(int
Bitmask that defines which Features are enabled and which disabled
mask
)

com.fasterxml.jackson.core.util.JsonParserDelegate.setFeatureMask(int
Bit mask that defines set of features to enable
mask
)

Returns:

Buffered text value parsed as a BigDecimal, if possible
com.fasterxml.jackson.core.util.TextBuffer.contentsAsDecimal
()

Since 2.15 just access String contents if necessary, call NumberInput#parseBigDecimal(String, boolean) (or other overloads) directly instead

Returns:

Buffered text value parsed as a Double, if possible
com.fasterxml.jackson.core.util.TextBuffer.contentsAsDouble
()

use contentsAsDouble(boolean)

Returns:

Buffered text value parsed as a Float, if possible
com.fasterxml.jackson.core.util.TextBuffer.contentsAsFloat
()

use contentsAsFloat(boolean)

Returns:

The version
com.fasterxml.jackson.core.util.VersionUtil.mavenVersionFor
(ClassLoader
the ClassLoader to load the pom.properties file from
cl
,
String
the groupId of the library
groupId
,
String
the artifactId of the library
artifactId
)

Since 2.6: functionality not used by any official Jackson component, should be moved out if anyone needs it

Returns:

Version information discovered if any; Version#unknownVersion() if none
com.fasterxml.jackson.core.util.VersionUtil.packageVersionFor
(Class<?>
Class for which to look version information
cls
)

Since 2.12 simply use versionFor(Class) instead