|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Base64Variants.MIME
Base64Variants.MIME_NO_LINEFEEDS
Base64Variants.PEM
Base64Variants.MODIFIED_FOR_URL
ByteArrayOutputStream
in usage, but more geared to Jackson use cases internally.Name
s which are constructed directly from a byte-based
input source).JsonGenerator.setSchema(com.fasterxml.jackson.core.FormatSchema)
).
JsonParser.setSchema(com.fasterxml.jackson.core.FormatSchema)
).
JsonParser.hasCurrentToken()
returns false, and
JsonParser.getCurrentToken()
null).
JsonParser.Feature.AUTO_CLOSE_SOURCE
is enabled.
JsonFactory
used for constructing
JSON parser (JsonParser
)
and generator
(JsonParser
)
instances.Comparable
) is to prevent constructing a
reference without type information.
JsonParser.Feature
for list of features)
JsonParser.Feature
for list of features)
JsonGenerator.Feature
for list of features)
JsonGenerator.Feature
for list of available features.
JsonParser.Feature
for list of features)
BigDecimal
.
JsonFactory
that has
the same settings as this instance, but is otherwise
independent (i.e.
JsonParser
for
parsing content which is assumed to be in detected data format.
JsonFactory
instance.
JsonFactory
instances to use for actual low-level
detection.DataFormatDetector
when requested
to detect format of given input data.JsonFactory
instance when
creating parser given an InputStream
, when this decorator
has been registered.
JsonFactory
instance when
creating parser on given "raw" byte source.
JsonFactory
instance when
creating parser given an Reader
, when this decorator
has been registered.
JsonFactory
instance when
creating generator for given OutputStream
, when this decorator
has been registered.
JsonFactory
instance when
creating generator for given Writer
, when this decorator
has been registered.
PrettyPrinter
implementation that uses 2-space
indentation with platform-default linefeeds.JsonFactory.Feature
for list of features)
JsonParser.Feature
for list of features)
JsonGenerator.Feature
for list of features)
JsonGenerator.Feature
for list of features)
JsonParser.Feature
for list of features)
JsonFactory.Feature
for list of features)
JsonParser.Feature
for list of features)
JsonGenerator.Feature
for list of features)
JsonGenerator.Feature
for list of available features.
JsonParser.Feature
for list of features)
CharacterEscapes.getEscapeSequence(int)
is needed to figure out exact escape
sequence to output.
InputStream
) given has, as per configuration of this detector
instance.
JsonFactory.getFormatName()
JsonParser
and JsonGenerator
implementations to further
specify structure of expected format.JsonToken.VALUE_NUMBER_INT
and
it can not be used as a Java long primitive type due to its
magnitude.
JsonParser.getBinaryValue(Base64Variant)
that defaults to using
Base64Variants.getDefaultVariant()
as the default encoding.
JsonToken.VALUE_TRUE
or
JsonToken.VALUE_FALSE
.
JsonToken.VALUE_NUMBER_INT
and
it can be expressed as a value of Java byte primitive type.
JsonGenerator
s
it creates.
JsonGenerator
s
it creates.
JsonGenerator
s
it creates.
JsonGenerator.writeObject(java.lang.Object)
).
ObjectCodec
associated with this
parser, if any.
JsonToken.FIELD_NAME
s it will
be the same as what JsonParser.getText()
returns;
for field values it will be preceding field name;
and for others (array values, root-level values) null.
JsonToken.VALUE_NUMBER_FLOAT
or
JsonToken.VALUE_NUMBER_INT
.
JsonToken.VALUE_NUMBER_FLOAT
and
it can be expressed as a Java double primitive type.
JsonToken.VALUE_EMBEDDED_OBJECT
.
JsonFactory
) codec will use for data binding.
JsonToken.VALUE_NUMBER_FLOAT
and
it can be expressed as a Java float primitive type.
InputStream
or Reader
, depending on what
parser was constructed with.
JsonToken.VALUE_NUMBER_INT
and
it can be expressed as a value of Java int primitive type.
ObjectCodec.getFactory()
instead.
JsonParser.clearCurrentToken()
.
JsonToken.VALUE_NUMBER_INT
and
it can be expressed as a Java long primitive type.
JsonFactory
that represents format that data matched.
MatchStrength.INCONCLUSIVE
.
JsonToken.VALUE_NUMBER_INT
or
JsonToken.VALUE_NUMBER_FLOAT
, returns
one of JsonParser.NumberType
constants; otherwise returns null.
JsonProcessingException.getMessage()
adds.
OutputStream
or Writer
, depending on what
generator was constructed with.
PrettyPrinter
; returns it if so, null if none configured.
Class
of resolved type.
JsonToken.VALUE_NUMBER_INT
and
it can be expressed as a value of Java short primitive type.
ReaderBasedJsonParser.nextToken()
, or
after encountering end-of-input), returns null.
JsonParser.nextToken()
, or
after encountering end-of-input), returns null.
JsonParser.getText()
, but that will return
underlying (unmodifiable) character array that contains
textual value, instead of constructing a String object
to contain this information.
JsonParser.getTextCharacters()
, to know length
of String stored in returned buffer.
JsonParser.getTextCharacters()
, to know offset
of the first text content character within buffer.
String
.
String
.
ByteSourceJsonBootstrapper
);
supports UTF-8, for example.
TextBuffer.getTextBuffer()
.
JsonParser.getTextCharacters()
would be the most efficient
way to access textual content for the event parser currently
points to.
NumberInput.inLongRange(char[],int,int,boolean)
, but
with String argument
InputStream
and buffers it as necessary.Instantiatable.createInstance()
method.JsonParser.Feature
is enabled.
JsonToken.START_ARRAY
) when start array is expected.
JsonParser
)
and writer (aka generator, JsonGenerator
)
instances.JsonFactory
.UTF8JsonGenerator
and WriterBasedJsonGenerator
.JsonParser
,
to allow for simple overridability of basic parsing functionality.JsonParser
s to create a single logical sequence of
tokens, as a single JsonParser
.JsonStreamContext
, which implements
core methods needed, and also exposes
more complete API to parser implementation classes.JsonStreamContext
, which implements
core methods needed, and also exposes
more complete API to generator implementation classes.InputStream
implementation that is used to "unwind" some
data previously read from an input stream; so that as long as some of
that data remains, it's returned; but as long as it's read, we'll
just use data from the underlying original stream.Base64Variants.MIME
which does not
use linefeeds (max line length set to infinite).
PrettyPrinter
implementation that adds no indentation,
just implements everything necessary for value output to work
as expected, and provide simpler extension points to allow
for creating simple custom implementations that add specific
decoration or overrides.InputStream
.JsonParser.nextToken()
) and
if it is JsonToken.VALUE_TRUE
or JsonToken.VALUE_FALSE
returns matching Boolean value; otherwise return null.
EOFException
.
JsonParser.nextToken()
) and
verifies whether it is JsonToken.FIELD_NAME
with specified name
and returns result of that comparison.
JsonParser.nextToken()
) and
if it is JsonToken.VALUE_NUMBER_INT
returns 32-bit int value;
otherwise returns specified default value
It is functionally equivalent to:
JsonParser.nextToken()
) and
if it is JsonToken.VALUE_NUMBER_INT
returns 64-bit long value;
otherwise returns specified default value
It is functionally equivalent to:
JsonParser.nextToken()
) and
if it is JsonToken.VALUE_STRING
returns contained String value;
otherwise returns null.
JsonToken.isNumeric()
),
returns native type that node uses to store the numeric value;
otherwise returns null.
JsonParser
and
JsonGenerator
use to serialize and deserialize regular
Java objects (POJOs aka Beans).JsonParser
implementations.JsonParser
implementations, but does not add any additional fields that depend
on particular method of obtaining input.Base64Variants.MIME
: it is otherwise
identical, except that it mandates shorter line length.
JsonParser.getBigIntegerValue()
,
especially when value can be large.
JsonParser.readBinaryValue(OutputStream)
but allows explicitly
specifying base64 variant to use.
JsonParser
, which is
based on a Reader
to handle low-level character
conversion tasks.TreeNode
instances.
Boolean
).
Collection
and
Map
).
Boolean
).
TreeNode
of resulting model.
ObjectCodec
is needed for binding data parsed
using JsonParser
constructed by this factory
(which typically also implies the same for serialization
with JsonGenerator
).
ObjectCodec
is needed for binding data parsed
using JsonParser
constructed by this factory
(which typically also implies the same for serialization
with JsonGenerator
).
StringWriter
, based on using segmented
internal buffer.JsonGenerator
s
it creates.
JsonGenerator
s
it creates.
ObjectCodec
(typically
a com.fasterxml.jackson.databind.ObjectMapper
)
with this factory (and more importantly, parsers and generators
it constructs).
JsonGenerator.writeObject(java.lang.Object)
).
ObjectCodec
associated with this
parser, if any.
JsonToken.START_OBJECT
or JsonToken.START_ARRAY
.
StringBuffer
, with
following differences:
TextBuffer uses segments character arrays, to avoid having
to do additional array copies when array is not big enough.TypeFactory
from mapper package).
TextBuffer.contentsAsString()
, since it's not guaranteed that resulting
String is cached.
JsonParser
instance for
iterating over contents of the tree that this node is root of.
JsonParser
for reading
contents of a JSON tree, as if it was external serialized
JSON content.
ObjectCodec
to have some level
of interoperability.ResolvedType
implementation
(implemented by JavaType
from "databind" bundle) to be used.DefaultPrettyPrinter
).
JsonParser
, which is
based on a InputStream
as the input source.Version
for details).
Version
s.JsonGenerator.writeBinary(Base64Variant,byte[],int,int)
,
but default to using the Jackson default Base64 variant
(which is Base64Variants.MIME_NO_LINEFEEDS
).
JsonGenerator.writeBinary(Base64Variant,byte[],int,int)
,
but assumes default to using the Jackson default Base64 variant
(which is Base64Variants.MIME_NO_LINEFEEDS
).
JsonGenerator.writeBinary(Base64Variant,InputStream,int)
,
but assumes default to using the Jackson default Base64 variant
(which is Base64Variants.MIME_NO_LINEFEEDS
).
JsonGenerator.writeBinary(Base64Variant,byte[],int,int)
,
but where input is provided through a stream, allowing for incremental
writes without holding the whole input in memory.
JsonGenerator.writeFieldName(String)
, main difference
being that it may perform better as some of processing (such as
quoting of certain characters, or encoding into external encoding
if supported by generator) can be done just once and reused for
later calls.
JsonGenerator.writeString(String)
but that takes as
its input a UTF-8 encoded String that is to be output as-is, without additional
escaping (type of which depends on data format; backslashes for JSON).
JsonGenerator
that outputs JSON content using a Writer
which handles character encoding.JsonGenerator.writeString(String)
, but that takes
SerializableString
which can make this potentially
more efficient to call as generator may be able to reuse
quoted and/or encoded representation.
JsonGenerator.writeString(String)
but that takes as its input
a UTF-8 encoded String which has not been escaped using whatever
escaping scheme data format requires (for JSON that is backslash-escaping
for control characters and double-quotes; for other formats something else).
ParserMinimalBase.getBinaryValue(com.fasterxml.jackson.core.Base64Variant)
will not need to decode data more
than once.
JsonGenerator.Feature.WRITE_NUMBERS_AS_STRINGS
).
_charBuffer
_count
along with primary entries)
JsonParseException
s
based on current state of the parser
Writer
and context object.
JsonFactory._createGenerator(Writer, IOContext)
instead
JsonFactory._createParser(InputStream, IOContext)
instead
JsonFactory._createParser(Reader, IOContext)
instead
JsonFactory._createParser(byte[], int, int, IOContext)
instead
InputStream
and context object.
Reader
object for reading content.
Reader
object for reading content
passed as raw byte array.
OutputStream
and context object, using UTF-8 encoding.
ParserMinimalBase.nextToken()
, if any.
JsonGenerator.Feature
s
are enabled.
JsonParser.Feature
s
are enabled.
_buckets.length - 1
, when _buckets.length is
a power of two.
ParserMinimalBase.clearCurrentToken()
was called.
Name
instances matching
entries in _mainHash
.
DataFormatMatcher._match
Integer.MAX_VALUE
if not limited).
ParserMinimalBase.getTextCharacters()
method (instead of String
returning alternatives)
JsonParserSequence._parsers
.
ObjectMapper
, but that abstract is not part of core
package.
UTF8JsonGenerator._outputStream
.
WriterBasedJsonGenerator._writer
.
char
s that we know will always fit
in the output buffer after escaping
Base64Variant.PADDING_CHAR_NONE
if not).
InputAccessor.Std._buffer
.
ThreadLocal
contains a SoftReference
to a BufferRecycler
used to provide a low-cost
buffer recycling between reader and writer instances.
ThreadLocal
contains a SoftReference
to a BufferRecycler
used to provide a low-cost
buffer recycling between reader and writer instances.
_writeFieldName
, off-lined
to keep the "fast path" as simple (and hopefully fast) as possible.
_writeFieldName
, off-lined
to keep the "fast path" as simple (and hopefully fast) as possible.
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |