|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
ByteArrayOutputStream
in usage, but more geared to Jackson use cases internally.Names, 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.
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.
JsonGenerators
it creates.
JsonGenerators
it creates.
JsonGenerators
it creates.
JsonGenerators
it creates.
JsonGenerator.writeObject(java.lang.Object)).
ObjectCodec associated with this
parser, if any.
JsonToken.FIELD_NAMEs 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.
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.
JsonFactory codec will use.
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.
OutputStream or Writer, depending on what
generator was constructed with.
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.
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.JsonParser.Feature is enabled.
JsonToken.START_ARRAY) when start array is expected.
JsonParser)
and writer (aka generator, JsonGenerator)
instances.JsonFactory.JsonParser,
to allow for simple overridability of basic parsing functionality.JsonParsers 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, which is
based on a Reader to handle low-level character
conversion tasks.TreeNode instances.
Boolean).
Collection and
Map).
Boolean).
TreeNode of resulting model.
StringWriter, based on using segmented
internal buffer.JsonGenerators
it creates.
JsonGenerators
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).
Versions.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.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.
InputAccessor.Std._buffer that are valid
buffered content.
DataFormatMatcher._bufferedData that were read.
JsonGenerator.Feature.WRITE_NUMBERS_AS_STRINGS).
_charBuffer
JsonParseExceptions
based on current state of the parser
Writer and context object.
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.Features
are enabled.
JsonParser.Features
are enabled.
_buckets.length - 1, when _buckets.length is
a power of two.
ParserMinimalBase.clearCurrentToken() was called.
DataFormatMatcher._match
ParserMinimalBase.getTextCharacters() method (instead of String
returning alternatives)
JsonParserSequence._parsers.
ObjectMapper, but that abstract is not part of core
package.
UTF8JsonGenerator._outputStream.
WriterBasedJsonGenerator._writer.
chars that we know will always fit
in the output buffer after escaping
InputAccessor.Std._buffer.
ThreadLocal contains a SoftRerefence
to a BufferRecycler used to provide a low-cost
buffer recycling between reader and writer instances.
ThreadLocal contains a SoftRerefence
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 | ||||||||||