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.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 | Method and Description |
---|---|
JsonGenerationException |
JsonGenerationException.withGenerator(JsonGenerator g)
Fluent method that may be used to assign originating
JsonGenerator ,
to be accessed using getProcessor() . |
Modifier and Type | Method and Description |
---|---|
protected void |
JsonGenerator._reportError(java.lang.String msg)
Helper method used for constructing and throwing
JsonGenerationException with given base message. |
void |
PrettyPrinter.beforeArrayValues(JsonGenerator gen)
Method called after array start marker has been output,
and right before the first value is to be output.
|
void |
PrettyPrinter.beforeObjectEntries(JsonGenerator gen)
Method called after object start marker has been output,
and right before the field name of the first entry is
to be output.
|
void |
PrettyPrinter.writeArrayValueSeparator(JsonGenerator gen)
Method called after an array value has been completely
output, and before another value is to be output.
|
void |
PrettyPrinter.writeEndArray(JsonGenerator gen,
int nrOfValues)
Method called after an Array value has been completely output
(minus closing bracket).
|
void |
PrettyPrinter.writeEndObject(JsonGenerator gen,
int nrOfEntries)
Method called after an Object value has been completely output
(minus closing curly bracket).
|
void |
PrettyPrinter.writeObjectEntrySeparator(JsonGenerator gen)
Method called after an object entry (field:value) has been completely
output, and before another value is to be output.
|
void |
PrettyPrinter.writeObjectFieldValueSeparator(JsonGenerator gen)
Method called after an object field has been output, but
before the value is output.
|
void |
PrettyPrinter.writeRootValueSeparator(JsonGenerator jg)
Method called after a root-level value has been completely
output, and before another value is to be output.
|
void |
PrettyPrinter.writeStartArray(JsonGenerator gen)
Method called when an Array value is to be output, before
any member/child values are output.
|
void |
PrettyPrinter.writeStartObject(JsonGenerator gen)
Method called when an Object value is to be output, before
any fields are output.
|
Modifier and Type | Method and Description |
---|---|
private void |
WriterBasedJsonGenerator._appendCharacterEscape(char ch,
int escCode)
Method called to append escape sequence for given character, at the
end of standard output buffer; or if not possible, write out directly.
|
private int |
UTF8JsonGenerator._handleLongCustomEscape(byte[] outputBuffer,
int outputPtr,
int outputEnd,
byte[] raw,
int remainingChars) |
private int |
WriterBasedJsonGenerator._prependOrWriteCharacterEscape(char[] buffer,
int ptr,
int end,
char ch,
int escCode)
Method called to try to either prepend character escape at front of
given buffer; or if not possible, to write it out directly.
|
private void |
WriterBasedJsonGenerator._prependOrWriteCharacterEscape(char ch,
int escCode)
Method called to try to either prepend character escape at front of
given buffer; or if not possible, to write it out directly.
|
protected void |
WriterBasedJsonGenerator._writeBinary(Base64Variant b64variant,
byte[] input,
int inputPtr,
int inputEnd) |
protected void |
UTF8JsonGenerator._writeBinary(Base64Variant b64variant,
byte[] input,
int inputPtr,
int inputEnd) |
protected int |
WriterBasedJsonGenerator._writeBinary(Base64Variant b64variant,
java.io.InputStream data,
byte[] readBuffer) |
protected int |
UTF8JsonGenerator._writeBinary(Base64Variant b64variant,
java.io.InputStream data,
byte[] readBuffer) |
protected int |
WriterBasedJsonGenerator._writeBinary(Base64Variant b64variant,
java.io.InputStream data,
byte[] readBuffer,
int bytesLeft) |
protected int |
UTF8JsonGenerator._writeBinary(Base64Variant b64variant,
java.io.InputStream data,
byte[] readBuffer,
int bytesLeft) |
private int |
UTF8JsonGenerator._writeCustomEscape(byte[] outputBuffer,
int outputPtr,
SerializableString esc,
int remainingChars) |
private void |
WriterBasedJsonGenerator._writeSegmentASCII(int end,
int maxNonEscaped) |
private void |
WriterBasedJsonGenerator._writeSegmentCustom(int end) |
private void |
UTF8JsonGenerator._writeSegmentedRaw(char[] cbuf,
int offset,
int len)
Helper method called when it is possible that output of raw section
to output may cross buffer boundary
|
private void |
WriterBasedJsonGenerator._writeStringASCII(char[] text,
int offset,
int len,
int maxNonEscaped) |
private void |
WriterBasedJsonGenerator._writeStringASCII(int len,
int maxNonEscaped) |
private void |
WriterBasedJsonGenerator._writeStringCustom(char[] text,
int offset,
int len) |
private void |
WriterBasedJsonGenerator._writeStringCustom(int len) |
private void |
UTF8JsonGenerator._writeUTF8Segment(byte[] utf8,
int offset,
int len) |
private void |
UTF8JsonGenerator._writeUTF8Segment2(byte[] utf8,
int offset,
int len) |
private void |
UTF8JsonGenerator._writeUTF8Segments(byte[] utf8,
int offset,
int totalLen)
Method called when UTF-8 encoded (but NOT yet escaped!) content is not guaranteed
to fit in the output buffer after escaping; as such, we just need to
chunk writes.
|
void |
WriterBasedJsonGenerator.writeBinary(Base64Variant b64variant,
byte[] data,
int offset,
int len) |
void |
UTF8JsonGenerator.writeBinary(Base64Variant b64variant,
byte[] data,
int offset,
int len) |
int |
WriterBasedJsonGenerator.writeBinary(Base64Variant b64variant,
java.io.InputStream data,
int dataLength) |
int |
UTF8JsonGenerator.writeBinary(Base64Variant b64variant,
java.io.InputStream data,
int dataLength) |
void |
WriterBasedJsonGenerator.writeEndArray() |
void |
WriterBasedJsonGenerator.writeEndObject() |
void |
UTF8JsonGenerator.writeRaw(char ch) |
void |
UTF8JsonGenerator.writeRaw(char[] cbuf,
int offset,
int len) |
void |
UTF8JsonGenerator.writeRaw(SerializableString text) |
void |
UTF8JsonGenerator.writeRaw(java.lang.String text) |
void |
UTF8JsonGenerator.writeRaw(java.lang.String text,
int offset,
int len) |
void |
WriterBasedJsonGenerator.writeStartArray() |
void |
WriterBasedJsonGenerator.writeStartObject() |
Modifier and Type | Method and Description |
---|---|
void |
MinimalPrettyPrinter.beforeArrayValues(JsonGenerator jg) |
void |
MinimalPrettyPrinter.beforeObjectEntries(JsonGenerator jg) |
void |
MinimalPrettyPrinter.writeArrayValueSeparator(JsonGenerator jg)
Method called after an array value has been completely
output, and before another value is to be output.
|
void |
MinimalPrettyPrinter.writeEndArray(JsonGenerator jg,
int nrOfValues) |
void |
MinimalPrettyPrinter.writeEndObject(JsonGenerator jg,
int nrOfEntries) |
void |
MinimalPrettyPrinter.writeObjectEntrySeparator(JsonGenerator jg)
Method called after an object entry (field:value) has been completely
output, and before another value is to be output.
|
void |
MinimalPrettyPrinter.writeObjectFieldValueSeparator(JsonGenerator jg)
Method called after an object field has been output, but
before the value is output.
|
void |
MinimalPrettyPrinter.writeRootValueSeparator(JsonGenerator jg) |
void |
MinimalPrettyPrinter.writeStartArray(JsonGenerator jg) |
void |
MinimalPrettyPrinter.writeStartObject(JsonGenerator jg) |