程序包 | 说明 |
---|---|
org.codehaus.jackson |
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser )
and generator
(JsonParser )
instances. |
org.codehaus.jackson.impl |
Parser and generator implementation classes that Jackson
defines and uses.
|
org.codehaus.jackson.io |
This package contains I/O helper classes Jackson itself uses, but that
are not exposed for external reuse.
|
org.codehaus.jackson.smile |
Package that contains experimental implementation of
"Binary-Encoded JSON-Like" data format handlers (parser,
generator, factory produce both, supporting constants).
|
org.codehaus.jackson.util |
Utility classes used by Jackson Core functionality.
|
限定符和类型 | 方法和说明 |
---|---|
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. |
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.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. |
限定符和类型 | 字段和说明 |
---|---|
protected SerializableString |
WriterBasedGenerator._currentEscape
When custom escapes are used, this member variable can be used to
store escape to use
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
Utf8Generator._writeFieldName(SerializableString name) |
void |
WriterBasedGenerator._writeFieldName(SerializableString name,
boolean commaBefore) |
protected void |
WriterBasedGenerator._writePPFieldName(SerializableString name,
boolean commaBefore) |
protected void |
Utf8Generator._writePPFieldName(SerializableString name,
boolean commaBefore) |
boolean |
Utf8StreamParser.nextFieldName(SerializableString str) |
void |
WriterBasedGenerator.writeFieldName(SerializableString name) |
void |
Utf8Generator.writeFieldName(SerializableString name) |
void |
WriterBasedGenerator.writeString(SerializableString sstr) |
void |
Utf8Generator.writeString(SerializableString text) |
限定符和类型 | 类和说明 |
---|---|
class |
SerializedString
String token that can lazily serialize String contained and then reuse that
serialization later on.
|
限定符和类型 | 方法和说明 |
---|---|
abstract SerializableString |
CharacterEscapes.getEscapeSequence(int ch)
Method generators can call to get lookup table for determining
exact escape sequence to use for given character.
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
SmileGenerator._writeFieldName(SerializableString name) |
protected void |
SmileGenerator._writeFieldNameUnicode(SerializableString name,
byte[] bytes) |
boolean |
SmileParser.nextFieldName(SerializableString str) |
void |
SmileGenerator.writeFieldName(SerializableString name) |
void |
SmileGenerator.writeString(SerializableString sstr) |
限定符和类型 | 方法和说明 |
---|---|
void |
TokenBuffer.writeFieldName(SerializableString name) |
void |
JsonGeneratorDelegate.writeFieldName(SerializableString name) |
void |
TokenBuffer.writeString(SerializableString text) |
void |
JsonGeneratorDelegate.writeString(SerializableString text) |