Package | Description |
---|---|
com.fasterxml.jackson.core |
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser )
and generator
(JsonGenerator )
instances. |
com.fasterxml.jackson.core.base |
Base classes used by concrete Parser and Generator implementations;
contain functionality that is not specific to JSON or input
abstraction (byte vs char).
|
com.fasterxml.jackson.core.filter | |
com.fasterxml.jackson.core.io | |
com.fasterxml.jackson.core.json |
JSON-specific parser and generator implementation classes that
Jackson defines and uses.
|
com.fasterxml.jackson.core.util |
Utility classes used by Jackson Core functionality.
|
Modifier and Type | Field and Description |
---|---|
protected SerializableString |
JsonFactoryBuilder._rootValueSeparator |
protected SerializableString |
JsonFactory._rootValueSeparator
Separator used between root-level values, if any; null indicates
"do not add separator".
|
static SerializableString |
JsonFactory.DEFAULT_ROOT_VALUE_SEPARATOR |
Modifier and Type | Method and Description |
---|---|
SerializableString |
JsonpCharacterEscapes.getEscapeSequence(int ch) |
SerializableString |
JsonFactoryBuilder.rootValueSeparator() |
Modifier and Type | Method and Description |
---|---|
boolean |
JsonParser.nextFieldName(SerializableString str)
Method that fetches next token (as if calling
JsonParser.nextToken() ) and
verifies whether it is JsonToken.FIELD_NAME with specified name
and returns result of that comparison. |
JsonFactoryBuilder |
JsonFactoryBuilder.rootValueSeparator(SerializableString sep)
Method that allows overriding String used for separating root-level
JSON values (default is single space character)
|
JsonGenerator |
JsonGenerator.setRootValueSeparator(SerializableString sep)
Method that allows overriding String used for separating root-level
JSON values (default is single space character)
|
abstract void |
JsonGenerator.writeFieldName(SerializableString name)
Method similar to
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. |
void |
JsonGenerator.writeRaw(SerializableString raw)
Method that will force generator to copy
input text verbatim with no modifications (including
that no escaping is done and no separators are added even
if context [array, object] would otherwise require such).
|
void |
JsonGenerator.writeRawValue(SerializableString raw)
Method similar to
JsonGenerator.writeRawValue(String) , but potentially more
efficient as it may be able to use pre-encoded content (similar to
JsonGenerator.writeRaw(SerializableString) . |
abstract void |
JsonGenerator.writeString(SerializableString text)
Method similar to
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. |
Modifier and Type | Method and Description |
---|---|
void |
GeneratorBase.writeFieldName(SerializableString name) |
void |
GeneratorBase.writeRawValue(SerializableString text) |
void |
GeneratorBase.writeString(SerializableString text) |
Modifier and Type | Method and Description |
---|---|
void |
FilteringGeneratorDelegate.writeFieldName(SerializableString name) |
void |
FilteringGeneratorDelegate.writeRaw(SerializableString text) |
void |
FilteringGeneratorDelegate.writeString(SerializableString value) |
Modifier and Type | Class and Description |
---|---|
class |
SerializedString
String token that can lazily serialize String contained and then reuse that
serialization later on.
|
Modifier and Type | Method and Description |
---|---|
abstract SerializableString |
CharacterEscapes.getEscapeSequence(int ch)
Method generators can call to get lookup table for determining
exact escape sequence to use for given character.
|
Modifier and Type | Field and Description |
---|---|
protected SerializableString |
WriterBasedJsonGenerator._currentEscape
When custom escapes are used, this member variable is used
internally to hold a reference to currently used escape
|
protected SerializableString |
JsonGeneratorImpl._rootValueSeparator
Separator to use, if any, between root-level values.
|
Modifier and Type | Method and Description |
---|---|
protected void |
WriterBasedJsonGenerator._writeFieldName(SerializableString name,
boolean commaBefore) |
protected void |
UTF8JsonGenerator._writePPFieldName(SerializableString name) |
protected void |
WriterBasedJsonGenerator._writePPFieldName(SerializableString name,
boolean commaBefore) |
boolean |
ReaderBasedJsonParser.nextFieldName(SerializableString sstr) |
boolean |
UTF8StreamJsonParser.nextFieldName(SerializableString str) |
JsonGenerator |
JsonGeneratorImpl.setRootValueSeparator(SerializableString sep) |
void |
UTF8JsonGenerator.writeFieldName(SerializableString name) |
void |
WriterBasedJsonGenerator.writeFieldName(SerializableString name) |
void |
UTF8JsonGenerator.writeRaw(SerializableString text) |
void |
WriterBasedJsonGenerator.writeRaw(SerializableString text) |
void |
UTF8JsonGenerator.writeRawValue(SerializableString text) |
void |
UTF8JsonGenerator.writeString(SerializableString text) |
void |
WriterBasedJsonGenerator.writeString(SerializableString sstr) |
Modifier and Type | Field and Description |
---|---|
protected SerializableString |
DefaultPrettyPrinter._rootSeparator
String printed between root-level values, if any.
|
Modifier and Type | Method and Description |
---|---|
JsonGenerator |
JsonGeneratorDelegate.setRootValueSeparator(SerializableString sep) |
DefaultPrettyPrinter |
DefaultPrettyPrinter.withRootSeparator(SerializableString rootSeparator) |
void |
JsonGeneratorDelegate.writeFieldName(SerializableString name) |
void |
JsonGeneratorDelegate.writeRaw(SerializableString raw) |
void |
JsonGeneratorDelegate.writeString(SerializableString text) |
Constructor and Description |
---|
DefaultPrettyPrinter(DefaultPrettyPrinter base,
SerializableString rootSeparator) |
DefaultPrettyPrinter(SerializableString rootSeparator)
Constructor that specifies separator String to use between root values;
if null, no separator is printed.
|
Copyright © 2008–2022 FasterXML. All rights reserved.