public class SmileGenerator
extends com.fasterxml.jackson.core.base.GeneratorBase
JsonGenerator
implementation for Smile-encoded content
(see Smile Format Specification)Modifier and Type | Class and Description |
---|---|
static class |
SmileGenerator.Feature
Enumeration that defines all togglable features for Smile generators.
|
protected static class |
SmileGenerator.SharedStringNode
Helper class used for keeping track of possibly shareable String
references (for field names and/or short String values)
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
_bufferRecyclable
Flag that indicates whether the output buffer is recycable (and
needs to be returned to recycler once we are done) or not.
|
protected int |
_bytesWritten
Let's keep track of how many bytes have been output, may prove useful
when debugging.
|
protected int |
_formatFeatures
Bit flag composed of bits that indicate which
SmileGenerator.Feature s
are enabled. |
protected com.fasterxml.jackson.core.io.IOContext |
_ioContext |
protected java.io.OutputStream |
_out |
protected byte[] |
_outputBuffer
Intermediate buffer in which contents are buffered before
being written using
_out . |
protected int |
_outputEnd
Offset to index after the last valid index in
_outputBuffer . |
protected int |
_outputTail
Pointer to the next available byte in
_outputBuffer |
protected int |
_seenNameCount
Number of entries in
_seenNames ; -1 if no shared name
detection is enabled |
protected SmileGenerator.SharedStringNode[] |
_seenNames
Raw data structure used for checking whether field name to
write can be output using back reference or not.
|
protected int |
_seenStringValueCount
Number of entries in
_seenStringValues ; -1 if no shared text value
detection is enabled |
protected SmileGenerator.SharedStringNode[] |
_seenStringValues
Raw data structure used for checking whether String value to
write can be output using back reference or not.
|
protected SmileBufferRecycler<SmileGenerator.SharedStringNode> |
_smileBufferRecycler
Helper object used for low-level recycling of Smile-generator
specific buffers.
|
protected static java.lang.ThreadLocal<java.lang.ref.SoftReference<SmileBufferRecycler<SmileGenerator.SharedStringNode>>> |
_smileRecyclerRef
This
ThreadLocal contains a SoftReference
to a buffer recycler used to provide a low-cost
buffer recycling for Smile-specific buffers. |
protected static long |
MAX_INT_AS_LONG |
private static int |
MIN_BUFFER_LENGTH
To simplify certain operations, we require output buffer length
to allow outputting of contiguous 256 character UTF-8 encoded String
value.
|
protected static long |
MIN_INT_AS_LONG |
protected static byte |
TOKEN_BYTE_BIG_DECIMAL |
protected static byte |
TOKEN_BYTE_BIG_INTEGER |
protected static byte |
TOKEN_BYTE_FLOAT_32 |
protected static byte |
TOKEN_BYTE_FLOAT_64 |
protected static byte |
TOKEN_BYTE_INT_32 |
protected static byte |
TOKEN_BYTE_INT_64 |
protected static byte |
TOKEN_BYTE_LONG_STRING_ASCII |
_cfgNumbersAsStrings, _closed, _features, _objectCodec, _writeContext, DERIVED_FEATURES_MASK, MAX_BIG_DECIMAL_SCALE, SURR1_FIRST, SURR1_LAST, SURR2_FIRST, SURR2_LAST, WRITE_BINARY, WRITE_BOOLEAN, WRITE_NULL, WRITE_NUMBER, WRITE_RAW, WRITE_STRING
Constructor and Description |
---|
SmileGenerator(com.fasterxml.jackson.core.io.IOContext ctxt,
int jsonFeatures,
int smileFeatures,
com.fasterxml.jackson.core.ObjectCodec codec,
java.io.OutputStream out) |
SmileGenerator(com.fasterxml.jackson.core.io.IOContext ctxt,
int jsonFeatures,
int smileFeatures,
com.fasterxml.jackson.core.ObjectCodec codec,
java.io.OutputStream out,
byte[] outputBuffer,
int offset,
boolean bufferRecyclable) |
Modifier and Type | Method and Description |
---|---|
private void |
_addSeenName(java.lang.String name) |
private void |
_addSeenStringValue(java.lang.String text) |
private int |
_convertSurrogate(int firstPart,
int secondPart)
Method called to calculate UTF codepoint, from a surrogate pair.
|
private void |
_ensureRoomForOutput(int needed) |
private int |
_findSeenName(java.lang.String name) |
private int |
_findSeenStringValue(java.lang.String text) |
protected void |
_flushBuffer() |
private void |
_mediumUTF8Encode(char[] str,
int inputPtr,
int inputEnd) |
private void |
_mediumUTF8Encode(java.lang.String str,
int inputPtr,
int inputEnd) |
protected java.lang.UnsupportedOperationException |
_notSupported() |
private int |
_readMore(java.io.InputStream in,
byte[] readBuffer,
int inputPtr,
int inputEnd,
int maxRead) |
protected void |
_releaseBuffers() |
private int |
_shortUTF8Encode(char[] str,
int i,
int end)
Helper method called when the whole character sequence is known to
fit in the output buffer regardless of UTF-8 expansion.
|
private int |
_shortUTF8Encode(java.lang.String str,
int i,
int end) |
private int |
_shortUTF8Encode2(char[] str,
int i,
int end,
int outputPtr)
Helper method called when the whole character sequence is known to
fit in the output buffer, but not all characters are single-byte (ASCII)
characters.
|
private int |
_shortUTF8Encode2(java.lang.String str,
int i,
int end,
int outputPtr) |
protected static SmileBufferRecycler<SmileGenerator.SharedStringNode> |
_smileBufferRecycler() |
private void |
_throwIllegalSurrogate(int code) |
private static boolean |
_validBackRef(int index)
Helper method used to ensure that we do not use back-reference values
that would produce illegal byte sequences (ones with byte 0xFE or 0xFF).
|
protected void |
_verifyValueWrite(java.lang.String typeMsg) |
protected void |
_write7BitBinaryWithLength(byte[] data,
int offset,
int len) |
protected int |
_write7BitBinaryWithLength(java.io.InputStream in,
int bytesLeft,
byte[] buffer) |
private void |
_writeByte(byte b) |
private void |
_writeBytes(byte[] data,
int offset,
int len) |
private void |
_writeBytes(byte b1,
byte b2) |
private void |
_writeBytes(byte b1,
byte b2,
byte b3) |
private void |
_writeBytes(byte b1,
byte b2,
byte b3,
byte b4) |
private void |
_writeBytes(byte b1,
byte b2,
byte b3,
byte b4,
byte b5) |
private void |
_writeBytes(byte b1,
byte b2,
byte b3,
byte b4,
byte b5,
byte b6) |
private int |
_writeBytes(java.io.InputStream in,
int bytesLeft) |
private void |
_writeBytesLong(byte[] data,
int offset,
int len) |
protected void |
_writeDecimalNumber(java.lang.String enc) |
protected void |
_writeFieldName(com.fasterxml.jackson.core.SerializableString name) |
private void |
_writeFieldName(java.lang.String name) |
protected void |
_writeFieldNameUnicode(com.fasterxml.jackson.core.SerializableString name,
byte[] bytes) |
protected void |
_writeIntegralNumber(java.lang.String enc,
boolean neg) |
private void |
_writeLongAsciiFieldName(byte[] bytes) |
private void |
_writeNonSharedString(java.lang.String text,
int len)
Helper method called to handle cases where String value to write is known
to be long enough not to be shareable.
|
private void |
_writeNonShortFieldName(java.lang.String name,
int len) |
private int |
_writeNumberNoChecks(int ptr,
double d) |
private int |
_writeNumberNoChecks(int ptr,
int i) |
private int |
_writeNumberNoChecks(int ptr,
long l) |
private void |
_writePositiveVInt(int i)
Helper method for writing a 32-bit positive (really 31-bit then) value.
|
private void |
_writeSharedNameReference(int ix) |
private void |
_writeSharedStringValueReference(int ix) |
private void |
_writeSignedVInt(int input)
Helper method for writing 32-bit signed value, using
"zig zag encoding" (see protocol buffers for explanation -- basically,
sign bit is moved as LSB, rest of value shifted left by one)
coupled with basic variable length encoding
|
boolean |
canWriteBinaryNatively() |
void |
close() |
SmileGenerator |
configure(SmileGenerator.Feature f,
boolean state) |
SmileGenerator |
disable(SmileGenerator.Feature f) |
SmileGenerator |
enable(SmileGenerator.Feature f) |
void |
flush() |
int |
getFormatFeatures() |
int |
getOutputBuffered() |
java.lang.Object |
getOutputTarget() |
boolean |
isEnabled(SmileGenerator.Feature f) |
protected long |
outputOffset()
Method for accessing offset of the next byte within the whole output
stream that this generator has produced.
|
com.fasterxml.jackson.core.JsonGenerator |
overrideFormatFeatures(int values,
int mask) |
com.fasterxml.jackson.core.JsonGenerator |
setPrettyPrinter(com.fasterxml.jackson.core.PrettyPrinter pp)
No way (or need) to indent anything, so let's block any attempts.
|
com.fasterxml.jackson.core.JsonGenerator |
useDefaultPrettyPrinter()
No way (or need) to indent anything, so let's block any attempts.
|
com.fasterxml.jackson.core.Version |
version() |
void |
writeArray(double[] array,
int offset,
int length) |
void |
writeArray(int[] array,
int offset,
int length) |
void |
writeArray(long[] array,
int offset,
int length) |
void |
writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant,
byte[] data,
int offset,
int len) |
int |
writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant,
java.io.InputStream data,
int dataLength) |
int |
writeBinary(java.io.InputStream data,
int dataLength) |
void |
writeBoolean(boolean state) |
void |
writeBytes(byte[] data,
int offset,
int len)
Method for directly inserting specified bytes in output at
current position.
|
void |
writeEndArray() |
void |
writeEndObject() |
void |
writeFieldName(com.fasterxml.jackson.core.SerializableString name) |
void |
writeFieldName(java.lang.String name) |
void |
writeHeader()
Method that can be called to explicitly write Smile document header.
|
void |
writeNull() |
void |
writeNumber(java.math.BigDecimal dec) |
void |
writeNumber(java.math.BigInteger v) |
void |
writeNumber(double d) |
void |
writeNumber(float f) |
void |
writeNumber(int i) |
void |
writeNumber(long l) |
void |
writeNumber(java.lang.String encodedValue) |
void |
writeRaw(byte b)
Method for directly inserting specified byte in output at
current position.
|
void |
writeRaw(char c) |
void |
writeRaw(char[] text,
int offset,
int len) |
void |
writeRaw(java.lang.String text) |
void |
writeRaw(java.lang.String text,
int offset,
int len) |
void |
writeRawUTF8String(byte[] text,
int offset,
int len) |
void |
writeRawValue(char[] text,
int offset,
int len) |
void |
writeRawValue(java.lang.String text) |
void |
writeRawValue(java.lang.String text,
int offset,
int len) |
void |
writeStartArray() |
void |
writeStartArray(int size) |
void |
writeStartObject() |
void |
writeStartObject(java.lang.Object forValue) |
void |
writeString(char[] text,
int offset,
int len) |
void |
writeString(com.fasterxml.jackson.core.SerializableString sstr) |
void |
writeString(java.lang.String text) |
void |
writeStringField(java.lang.String fieldName,
java.lang.String value) |
void |
writeUTF8String(byte[] text,
int offset,
int len) |
_asString, _checkStdFeatureChanges, _constructDefaultPrettyPrinter, _decodeSurrogate, disable, enable, getCodec, getCurrentValue, getFeatureMask, getOutputContext, isClosed, isEnabled, overrideStdFeatures, setCodec, setCurrentValue, setFeatureMask, writeObject, writeRawValue, writeTree
_reportError, _reportUnsupportedOperation, _throwInternal, _verifyOffsets, _writeSimpleObject, canOmitFields, canUseSchema, canWriteFormattedNumbers, canWriteObjectId, canWriteTypeId, configure, copyCurrentEvent, copyCurrentStructure, getCharacterEscapes, getHighestEscapedChar, getPrettyPrinter, getSchema, setCharacterEscapes, setHighestNonEscapedChar, setRootValueSeparator, setSchema, writeArrayFieldStart, writeBinary, writeBinary, writeBinaryField, writeBooleanField, writeEmbeddedObject, writeFieldId, writeNullField, writeNumber, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectField, writeObjectFieldStart, writeObjectId, writeObjectRef, writeOmittedField, writeRaw, writeString, writeTypeId, writeTypePrefix, writeTypeSuffix
private static final int MIN_BUFFER_LENGTH
Note: actually we could live with shorter one; absolute minimum would be for encoding 64-character Strings.
protected static final byte TOKEN_BYTE_LONG_STRING_ASCII
protected static final byte TOKEN_BYTE_INT_32
protected static final byte TOKEN_BYTE_INT_64
protected static final byte TOKEN_BYTE_BIG_INTEGER
protected static final byte TOKEN_BYTE_FLOAT_32
protected static final byte TOKEN_BYTE_FLOAT_64
protected static final byte TOKEN_BYTE_BIG_DECIMAL
protected static final long MIN_INT_AS_LONG
protected static final long MAX_INT_AS_LONG
protected final com.fasterxml.jackson.core.io.IOContext _ioContext
protected final java.io.OutputStream _out
protected int _formatFeatures
SmileGenerator.Feature
s
are enabled.protected final SmileBufferRecycler<SmileGenerator.SharedStringNode> _smileBufferRecycler
protected byte[] _outputBuffer
_out
.protected int _outputTail
_outputBuffer
protected final int _outputEnd
_outputBuffer
.
Typically same as length of the buffer.protected int _bytesWritten
protected SmileGenerator.SharedStringNode[] _seenNames
protected int _seenNameCount
_seenNames
; -1 if no shared name
detection is enabledprotected SmileGenerator.SharedStringNode[] _seenStringValues
protected int _seenStringValueCount
_seenStringValues
; -1 if no shared text value
detection is enabledprotected boolean _bufferRecyclable
protected static final java.lang.ThreadLocal<java.lang.ref.SoftReference<SmileBufferRecycler<SmileGenerator.SharedStringNode>>> _smileRecyclerRef
ThreadLocal
contains a SoftReference
to a buffer recycler used to provide a low-cost
buffer recycling for Smile-specific buffers.public SmileGenerator(com.fasterxml.jackson.core.io.IOContext ctxt, int jsonFeatures, int smileFeatures, com.fasterxml.jackson.core.ObjectCodec codec, java.io.OutputStream out)
public SmileGenerator(com.fasterxml.jackson.core.io.IOContext ctxt, int jsonFeatures, int smileFeatures, com.fasterxml.jackson.core.ObjectCodec codec, java.io.OutputStream out, byte[] outputBuffer, int offset, boolean bufferRecyclable)
public void writeHeader() throws java.io.IOException
SmileFactory
calls this method.java.io.IOException
protected static final SmileBufferRecycler<SmileGenerator.SharedStringNode> _smileBufferRecycler()
public com.fasterxml.jackson.core.Version version()
version
in interface com.fasterxml.jackson.core.Versioned
version
in class com.fasterxml.jackson.core.base.GeneratorBase
public boolean canWriteBinaryNatively()
canWriteBinaryNatively
in class com.fasterxml.jackson.core.JsonGenerator
public com.fasterxml.jackson.core.JsonGenerator useDefaultPrettyPrinter()
useDefaultPrettyPrinter
in class com.fasterxml.jackson.core.base.GeneratorBase
public com.fasterxml.jackson.core.JsonGenerator setPrettyPrinter(com.fasterxml.jackson.core.PrettyPrinter pp)
setPrettyPrinter
in class com.fasterxml.jackson.core.JsonGenerator
public java.lang.Object getOutputTarget()
getOutputTarget
in class com.fasterxml.jackson.core.JsonGenerator
public int getOutputBuffered()
getOutputBuffered
in class com.fasterxml.jackson.core.JsonGenerator
public int getFormatFeatures()
getFormatFeatures
in class com.fasterxml.jackson.core.JsonGenerator
public com.fasterxml.jackson.core.JsonGenerator overrideFormatFeatures(int values, int mask)
overrideFormatFeatures
in class com.fasterxml.jackson.core.JsonGenerator
public final void writeFieldName(java.lang.String name) throws java.io.IOException
writeFieldName
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public final void writeFieldName(com.fasterxml.jackson.core.SerializableString name) throws java.io.IOException
writeFieldName
in class com.fasterxml.jackson.core.base.GeneratorBase
java.io.IOException
public final void writeStringField(java.lang.String fieldName, java.lang.String value) throws java.io.IOException
writeStringField
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public SmileGenerator enable(SmileGenerator.Feature f)
public SmileGenerator disable(SmileGenerator.Feature f)
public final boolean isEnabled(SmileGenerator.Feature f)
public SmileGenerator configure(SmileGenerator.Feature f, boolean state)
public void writeRaw(byte b) throws java.io.IOException
NOTE: only use this method if you really know what you are doing.
java.io.IOException
public void writeBytes(byte[] data, int offset, int len) throws java.io.IOException
NOTE: only use this method if you really know what you are doing.
java.io.IOException
public final void writeStartArray() throws java.io.IOException
writeStartArray
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public final void writeStartArray(int size) throws java.io.IOException
writeStartArray
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public final void writeEndArray() throws java.io.IOException
writeEndArray
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public final void writeStartObject() throws java.io.IOException
writeStartObject
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public final void writeStartObject(java.lang.Object forValue) throws java.io.IOException
writeStartObject
in class com.fasterxml.jackson.core.base.GeneratorBase
java.io.IOException
public final void writeEndObject() throws java.io.IOException
writeEndObject
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public void writeArray(int[] array, int offset, int length) throws java.io.IOException
writeArray
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public void writeArray(long[] array, int offset, int length) throws java.io.IOException
writeArray
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public void writeArray(double[] array, int offset, int length) throws java.io.IOException
writeArray
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
private final void _writeFieldName(java.lang.String name) throws java.io.IOException
java.io.IOException
private final void _writeNonShortFieldName(java.lang.String name, int len) throws java.io.IOException
java.io.IOException
protected final void _writeFieldName(com.fasterxml.jackson.core.SerializableString name) throws java.io.IOException
java.io.IOException
private final void _writeLongAsciiFieldName(byte[] bytes) throws java.io.IOException
java.io.IOException
protected final void _writeFieldNameUnicode(com.fasterxml.jackson.core.SerializableString name, byte[] bytes) throws java.io.IOException
java.io.IOException
private final void _writeSharedNameReference(int ix) throws java.io.IOException
java.io.IOException
public void writeString(java.lang.String text) throws java.io.IOException
writeString
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
private final void _writeSharedStringValueReference(int ix) throws java.io.IOException
java.io.IOException
private final void _writeNonSharedString(java.lang.String text, int len) throws java.io.IOException
java.io.IOException
public void writeString(char[] text, int offset, int len) throws java.io.IOException
writeString
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public final void writeString(com.fasterxml.jackson.core.SerializableString sstr) throws java.io.IOException
writeString
in class com.fasterxml.jackson.core.base.GeneratorBase
java.io.IOException
public void writeRawUTF8String(byte[] text, int offset, int len) throws java.io.IOException
writeRawUTF8String
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public final void writeUTF8String(byte[] text, int offset, int len) throws java.io.IOException
writeUTF8String
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public void writeRaw(java.lang.String text) throws java.io.IOException
writeRaw
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public void writeRaw(java.lang.String text, int offset, int len) throws java.io.IOException
writeRaw
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public void writeRaw(char[] text, int offset, int len) throws java.io.IOException
writeRaw
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public void writeRaw(char c) throws java.io.IOException
writeRaw
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public void writeRawValue(java.lang.String text) throws java.io.IOException
writeRawValue
in class com.fasterxml.jackson.core.base.GeneratorBase
java.io.IOException
public void writeRawValue(java.lang.String text, int offset, int len) throws java.io.IOException
writeRawValue
in class com.fasterxml.jackson.core.base.GeneratorBase
java.io.IOException
public void writeRawValue(char[] text, int offset, int len) throws java.io.IOException
writeRawValue
in class com.fasterxml.jackson.core.base.GeneratorBase
java.io.IOException
public void writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant, byte[] data, int offset, int len) throws java.io.IOException
writeBinary
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public int writeBinary(java.io.InputStream data, int dataLength) throws java.io.IOException
writeBinary
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public int writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant, java.io.InputStream data, int dataLength) throws java.io.IOException
writeBinary
in class com.fasterxml.jackson.core.base.GeneratorBase
java.io.IOException
public void writeBoolean(boolean state) throws java.io.IOException
writeBoolean
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public void writeNull() throws java.io.IOException
writeNull
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public void writeNumber(int i) throws java.io.IOException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
private final int _writeNumberNoChecks(int ptr, int i) throws java.io.IOException
java.io.IOException
public void writeNumber(long l) throws java.io.IOException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
private final int _writeNumberNoChecks(int ptr, long l) throws java.io.IOException
java.io.IOException
public void writeNumber(java.math.BigInteger v) throws java.io.IOException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public void writeNumber(double d) throws java.io.IOException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
private final int _writeNumberNoChecks(int ptr, double d) throws java.io.IOException
java.io.IOException
public void writeNumber(float f) throws java.io.IOException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public void writeNumber(java.math.BigDecimal dec) throws java.io.IOException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
public void writeNumber(java.lang.String encodedValue) throws java.io.IOException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
protected void _writeIntegralNumber(java.lang.String enc, boolean neg) throws java.io.IOException
java.io.IOException
protected void _writeDecimalNumber(java.lang.String enc) throws java.io.IOException
java.io.IOException
protected final void _verifyValueWrite(java.lang.String typeMsg) throws java.io.IOException
_verifyValueWrite
in class com.fasterxml.jackson.core.base.GeneratorBase
java.io.IOException
public final void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class com.fasterxml.jackson.core.base.GeneratorBase
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class com.fasterxml.jackson.core.base.GeneratorBase
java.io.IOException
private final int _shortUTF8Encode(char[] str, int i, int end) throws java.io.IOException
java.io.IOException
private final int _shortUTF8Encode2(char[] str, int i, int end, int outputPtr) throws java.io.IOException
java.io.IOException
private final int _shortUTF8Encode(java.lang.String str, int i, int end) throws java.io.IOException
java.io.IOException
private final int _shortUTF8Encode2(java.lang.String str, int i, int end, int outputPtr) throws java.io.IOException
java.io.IOException
private void _mediumUTF8Encode(char[] str, int inputPtr, int inputEnd) throws java.io.IOException
java.io.IOException
private void _mediumUTF8Encode(java.lang.String str, int inputPtr, int inputEnd) throws java.io.IOException
java.io.IOException
private int _convertSurrogate(int firstPart, int secondPart) throws java.io.IOException
java.io.IOException
private void _throwIllegalSurrogate(int code) throws java.io.IOException
java.io.IOException
private final void _ensureRoomForOutput(int needed) throws java.io.IOException
java.io.IOException
private final void _writeByte(byte b) throws java.io.IOException
java.io.IOException
private final void _writeBytes(byte b1, byte b2) throws java.io.IOException
java.io.IOException
private final void _writeBytes(byte b1, byte b2, byte b3) throws java.io.IOException
java.io.IOException
private final void _writeBytes(byte b1, byte b2, byte b3, byte b4) throws java.io.IOException
java.io.IOException
private final void _writeBytes(byte b1, byte b2, byte b3, byte b4, byte b5) throws java.io.IOException
java.io.IOException
private final void _writeBytes(byte b1, byte b2, byte b3, byte b4, byte b5, byte b6) throws java.io.IOException
java.io.IOException
private final void _writeBytes(byte[] data, int offset, int len) throws java.io.IOException
java.io.IOException
private final int _writeBytes(java.io.InputStream in, int bytesLeft) throws java.io.IOException
java.io.IOException
private final void _writeBytesLong(byte[] data, int offset, int len) throws java.io.IOException
java.io.IOException
private void _writePositiveVInt(int i) throws java.io.IOException
java.io.IOException
private void _writeSignedVInt(int input) throws java.io.IOException
java.io.IOException
protected void _write7BitBinaryWithLength(byte[] data, int offset, int len) throws java.io.IOException
java.io.IOException
protected int _write7BitBinaryWithLength(java.io.InputStream in, int bytesLeft, byte[] buffer) throws java.io.IOException
java.io.IOException
private int _readMore(java.io.InputStream in, byte[] readBuffer, int inputPtr, int inputEnd, int maxRead) throws java.io.IOException
java.io.IOException
protected void _releaseBuffers()
_releaseBuffers
in class com.fasterxml.jackson.core.base.GeneratorBase
protected final void _flushBuffer() throws java.io.IOException
java.io.IOException
private final int _findSeenName(java.lang.String name)
private final void _addSeenName(java.lang.String name)
private final int _findSeenStringValue(java.lang.String text)
private final void _addSeenStringValue(java.lang.String text)
private static final boolean _validBackRef(int index)
protected long outputOffset()
protected java.lang.UnsupportedOperationException _notSupported()