Class SmileGenerator
- java.lang.Object
-
- com.fasterxml.jackson.core.JsonGenerator
-
- com.fasterxml.jackson.core.base.GeneratorBase
-
- com.fasterxml.jackson.dataformat.smile.SmileGenerator
-
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned,java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class SmileGenerator extends com.fasterxml.jackson.core.base.GeneratorBaseJsonGeneratorimplementation for Smile-encoded content (see Smile Format Specification)- Author:
- tatu
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSmileGenerator.FeatureEnumeration that defines all togglable features for Smile generators.protected static classSmileGenerator.SharedStringNodeHelper class used for keeping track of possibly shareable String references (for field names and/or short String values)
-
Field Summary
Fields Modifier and Type Field Description protected boolean_bufferRecyclableFlag that indicates whether the output buffer is recycable (and needs to be returned to recycler once we are done) or not.protected int_bytesWrittenLet's keep track of how many bytes have been output, may prove useful when debugging.protected int_formatFeaturesBit flag composed of bits that indicate whichSmileGenerator.Features are enabled.protected com.fasterxml.jackson.core.io.IOContext_ioContextprotected java.io.OutputStream_outprotected byte[]_outputBufferIntermediate buffer in which contents are buffered before being written using_out.protected int_outputEndOffset to index after the last valid index in_outputBuffer.protected int_outputTailPointer to the next available byte in_outputBufferprotected int_seenNameCountNumber of entries in_seenNames; -1 if no shared name detection is enabledprotected SmileGenerator.SharedStringNode[]_seenNamesRaw data structure used for checking whether field name to write can be output using back reference or not.protected int_seenStringValueCountNumber of entries in_seenStringValues; -1 if no shared text value detection is enabledprotected SmileGenerator.SharedStringNode[]_seenStringValuesRaw data structure used for checking whether String value to write can be output using back reference or not.protected SmileBufferRecycler<SmileGenerator.SharedStringNode>_smileBufferRecyclerHelper object used for low-level recycling of Smile-generator specific buffers.protected static java.lang.ThreadLocal<java.lang.ref.SoftReference<SmileBufferRecycler<SmileGenerator.SharedStringNode>>>_smileRecyclerRefThisThreadLocalcontains aSoftReferenceto a buffer recycler used to provide a low-cost buffer recycling for Smile-specific buffers.protected static longMAX_INT_AS_LONGprotected static longMIN_INT_AS_LONGprotected static byteTOKEN_BYTE_BIG_DECIMALprotected static byteTOKEN_BYTE_BIG_INTEGERprotected static byteTOKEN_BYTE_FLOAT_32protected static byteTOKEN_BYTE_FLOAT_64protected static byteTOKEN_BYTE_INT_32protected static byteTOKEN_BYTE_INT_64protected static byteTOKEN_BYTE_LONG_STRING_ASCII-
Fields inherited from class com.fasterxml.jackson.core.base.GeneratorBase
_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 Summary
Constructors Constructor 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void_flushBuffer()protected java.lang.UnsupportedOperationException_notSupported()protected void_releaseBuffers()protected static SmileBufferRecycler<SmileGenerator.SharedStringNode>_smileBufferRecycler()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)protected void_writeDecimalNumber(java.lang.String enc)protected void_writeFieldName(com.fasterxml.jackson.core.SerializableString name)protected void_writeFieldNameUnicode(com.fasterxml.jackson.core.SerializableString name, byte[] bytes)protected void_writeIntegralNumber(java.lang.String enc, boolean neg)booleancanWriteBinaryNatively()voidclose()SmileGeneratorconfigure(SmileGenerator.Feature f, boolean state)SmileGeneratordisable(SmileGenerator.Feature f)SmileGeneratorenable(SmileGenerator.Feature f)voidflush()intgetFormatFeatures()intgetOutputBuffered()java.lang.ObjectgetOutputTarget()booleanisEnabled(SmileGenerator.Feature f)protected longoutputOffset()Method for accessing offset of the next byte within the whole output stream that this generator has produced.com.fasterxml.jackson.core.JsonGeneratoroverrideFormatFeatures(int values, int mask)com.fasterxml.jackson.core.JsonGeneratorsetPrettyPrinter(com.fasterxml.jackson.core.PrettyPrinter pp)No way (or need) to indent anything, so let's block any attempts.com.fasterxml.jackson.core.JsonGeneratoruseDefaultPrettyPrinter()No way (or need) to indent anything, so let's block any attempts.com.fasterxml.jackson.core.Versionversion()voidwriteBinary(com.fasterxml.jackson.core.Base64Variant b64variant, byte[] data, int offset, int len)intwriteBinary(com.fasterxml.jackson.core.Base64Variant b64variant, java.io.InputStream data, int dataLength)intwriteBinary(java.io.InputStream data, int dataLength)voidwriteBoolean(boolean state)voidwriteBytes(byte[] data, int offset, int len)Method for directly inserting specified bytes in output at current position.voidwriteEndArray()voidwriteEndObject()voidwriteFieldName(com.fasterxml.jackson.core.SerializableString name)voidwriteFieldName(java.lang.String name)voidwriteHeader()Method that can be called to explicitly write Smile document header.voidwriteNull()voidwriteNumber(double d)voidwriteNumber(float f)voidwriteNumber(int i)voidwriteNumber(long l)voidwriteNumber(java.lang.String encodedValue)voidwriteNumber(java.math.BigDecimal dec)voidwriteNumber(java.math.BigInteger v)voidwriteRaw(byte b)Method for directly inserting specified byte in output at current position.voidwriteRaw(char c)voidwriteRaw(char[] text, int offset, int len)voidwriteRaw(java.lang.String text)voidwriteRaw(java.lang.String text, int offset, int len)voidwriteRawUTF8String(byte[] text, int offset, int len)voidwriteRawValue(char[] text, int offset, int len)voidwriteRawValue(java.lang.String text)voidwriteRawValue(java.lang.String text, int offset, int len)voidwriteStartArray()voidwriteStartArray(int size)voidwriteStartObject()voidwriteString(char[] text, int offset, int len)voidwriteString(com.fasterxml.jackson.core.SerializableString sstr)voidwriteString(java.lang.String text)voidwriteStringField(java.lang.String fieldName, java.lang.String value)voidwriteUTF8String(byte[] text, int offset, int len)-
Methods inherited from class com.fasterxml.jackson.core.base.GeneratorBase
_asString, _checkRangeBoundsForByteArray, _checkRangeBoundsForCharArray, _checkRangeBoundsForString, _checkStdFeatureChanges, _constructDefaultPrettyPrinter, _decodeSurrogate, disable, enable, getCodec, getCurrentValue, getFeatureMask, getOutputContext, isClosed, isEnabled, overrideStdFeatures, setCodec, setCurrentValue, setFeatureMask, writeObject, writeRawValue, writeStartObject, writeTree
-
Methods inherited from class com.fasterxml.jackson.core.JsonGenerator
_copyCurrentContents, _reportError, _reportUnsupportedOperation, _throwInternal, _verifyOffsets, _writeSimpleObject, assignCurrentValue, canOmitFields, canUseSchema, canWriteFormattedNumbers, canWriteObjectId, canWriteTypeId, configure, copyCurrentEvent, copyCurrentStructure, currentValue, getCharacterEscapes, getHighestEscapedChar, getPrettyPrinter, getSchema, getWriteCapabilities, isEnabled, setCharacterEscapes, setHighestNonEscapedChar, setRootValueSeparator, setSchema, writeArray, writeArray, writeArray, writeArray, writeArrayFieldStart, writeBinary, writeBinary, writeBinaryField, writeBooleanField, writeEmbeddedObject, writeFieldId, writeNullField, writeNumber, writeNumber, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectField, writeObjectFieldStart, writeObjectId, writeObjectRef, writeOmittedField, writePOJO, writePOJOField, writeRaw, writeStartArray, writeStartArray, writeStartObject, writeString, writeTypeId, writeTypePrefix, writeTypeSuffix
-
-
-
-
Field Detail
-
TOKEN_BYTE_LONG_STRING_ASCII
protected static final byte TOKEN_BYTE_LONG_STRING_ASCII
- See Also:
- Constant Field Values
-
TOKEN_BYTE_INT_32
protected static final byte TOKEN_BYTE_INT_32
- See Also:
- Constant Field Values
-
TOKEN_BYTE_INT_64
protected static final byte TOKEN_BYTE_INT_64
- See Also:
- Constant Field Values
-
TOKEN_BYTE_BIG_INTEGER
protected static final byte TOKEN_BYTE_BIG_INTEGER
- See Also:
- Constant Field Values
-
TOKEN_BYTE_FLOAT_32
protected static final byte TOKEN_BYTE_FLOAT_32
- See Also:
- Constant Field Values
-
TOKEN_BYTE_FLOAT_64
protected static final byte TOKEN_BYTE_FLOAT_64
- See Also:
- Constant Field Values
-
TOKEN_BYTE_BIG_DECIMAL
protected static final byte TOKEN_BYTE_BIG_DECIMAL
- See Also:
- Constant Field Values
-
MIN_INT_AS_LONG
protected static final long MIN_INT_AS_LONG
- See Also:
- Constant Field Values
-
MAX_INT_AS_LONG
protected static final long MAX_INT_AS_LONG
- See Also:
- Constant Field Values
-
_ioContext
protected final com.fasterxml.jackson.core.io.IOContext _ioContext
-
_out
protected final java.io.OutputStream _out
-
_formatFeatures
protected int _formatFeatures
Bit flag composed of bits that indicate whichSmileGenerator.Features are enabled.
-
_smileBufferRecycler
protected final SmileBufferRecycler<SmileGenerator.SharedStringNode> _smileBufferRecycler
Helper object used for low-level recycling of Smile-generator specific buffers.
-
_outputBuffer
protected byte[] _outputBuffer
Intermediate buffer in which contents are buffered before being written using_out.
-
_outputTail
protected int _outputTail
Pointer to the next available byte in_outputBuffer
-
_outputEnd
protected final int _outputEnd
Offset to index after the last valid index in_outputBuffer. Typically same as length of the buffer.
-
_bytesWritten
protected int _bytesWritten
Let's keep track of how many bytes have been output, may prove useful when debugging. This does not include bytes buffered in the output buffer, just bytes that have been written using underlying stream writer.
-
_seenNames
protected SmileGenerator.SharedStringNode[] _seenNames
Raw data structure used for checking whether field name to write can be output using back reference or not.
-
_seenNameCount
protected int _seenNameCount
Number of entries in_seenNames; -1 if no shared name detection is enabled
-
_seenStringValues
protected SmileGenerator.SharedStringNode[] _seenStringValues
Raw data structure used for checking whether String value to write can be output using back reference or not.
-
_seenStringValueCount
protected int _seenStringValueCount
Number of entries in_seenStringValues; -1 if no shared text value detection is enabled
-
_bufferRecyclable
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.
-
_smileRecyclerRef
protected static final java.lang.ThreadLocal<java.lang.ref.SoftReference<SmileBufferRecycler<SmileGenerator.SharedStringNode>>> _smileRecyclerRef
ThisThreadLocalcontains aSoftReferenceto a buffer recycler used to provide a low-cost buffer recycling for Smile-specific buffers.
-
-
Constructor Detail
-
SmileGenerator
public SmileGenerator(com.fasterxml.jackson.core.io.IOContext ctxt, int jsonFeatures, int smileFeatures, com.fasterxml.jackson.core.ObjectCodec codec, java.io.OutputStream out)
-
SmileGenerator
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)
-
-
Method Detail
-
writeHeader
public void writeHeader() throws java.io.IOExceptionMethod that can be called to explicitly write Smile document header. Note that usually you do not need to call this for first document to output, but rather only if you intend to write multiple root-level documents with same generator (and even in that case this is optional thing to do). As a result usually onlySmileFactorycalls this method.- Throws:
java.io.IOException
-
_smileBufferRecycler
protected static final SmileBufferRecycler<SmileGenerator.SharedStringNode> _smileBufferRecycler()
-
version
public com.fasterxml.jackson.core.Version version()
- Specified by:
versionin interfacecom.fasterxml.jackson.core.Versioned- Overrides:
versionin classcom.fasterxml.jackson.core.base.GeneratorBase
-
canWriteBinaryNatively
public boolean canWriteBinaryNatively()
- Overrides:
canWriteBinaryNativelyin classcom.fasterxml.jackson.core.JsonGenerator
-
useDefaultPrettyPrinter
public com.fasterxml.jackson.core.JsonGenerator useDefaultPrettyPrinter()
No way (or need) to indent anything, so let's block any attempts. (should we throw an exception instead?)- Overrides:
useDefaultPrettyPrinterin classcom.fasterxml.jackson.core.base.GeneratorBase
-
setPrettyPrinter
public 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. (should we throw an exception instead?)- Overrides:
setPrettyPrinterin classcom.fasterxml.jackson.core.JsonGenerator
-
getOutputTarget
public java.lang.Object getOutputTarget()
- Overrides:
getOutputTargetin classcom.fasterxml.jackson.core.JsonGenerator
-
getOutputBuffered
public int getOutputBuffered()
- Overrides:
getOutputBufferedin classcom.fasterxml.jackson.core.JsonGenerator
-
getFormatFeatures
public int getFormatFeatures()
- Overrides:
getFormatFeaturesin classcom.fasterxml.jackson.core.JsonGenerator
-
overrideFormatFeatures
public com.fasterxml.jackson.core.JsonGenerator overrideFormatFeatures(int values, int mask)- Overrides:
overrideFormatFeaturesin classcom.fasterxml.jackson.core.JsonGenerator
-
writeFieldName
public final void writeFieldName(java.lang.String name) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeFieldNamein classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeFieldName
public final void writeFieldName(com.fasterxml.jackson.core.SerializableString name) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Overrides:
writeFieldNamein classcom.fasterxml.jackson.core.base.GeneratorBase- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeStringField
public final void writeStringField(java.lang.String fieldName, java.lang.String value) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Overrides:
writeStringFieldin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
enable
public SmileGenerator enable(SmileGenerator.Feature f)
-
disable
public SmileGenerator disable(SmileGenerator.Feature f)
-
isEnabled
public final boolean isEnabled(SmileGenerator.Feature f)
-
configure
public SmileGenerator configure(SmileGenerator.Feature f, boolean state)
-
writeRaw
public void writeRaw(byte b) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationExceptionMethod for directly inserting specified byte in output at current position.NOTE: only use this method if you really know what you are doing.
- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeBytes
public void writeBytes(byte[] data, int offset, int len) throws java.io.IOExceptionMethod for directly inserting specified bytes in output at current position.NOTE: only use this method if you really know what you are doing.
- Throws:
java.io.IOException
-
writeStartArray
public final void writeStartArray() throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeStartArrayin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeStartArray
public final void writeStartArray(int size) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Overrides:
writeStartArrayin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeEndArray
public final void writeEndArray() throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeEndArrayin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeStartObject
public final void writeStartObject() throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeStartObjectin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeEndObject
public final void writeEndObject() throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeEndObjectin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
_writeFieldName
protected final void _writeFieldName(com.fasterxml.jackson.core.SerializableString name) throws java.io.IOException- Throws:
java.io.IOException
-
_writeFieldNameUnicode
protected final void _writeFieldNameUnicode(com.fasterxml.jackson.core.SerializableString name, byte[] bytes) throws java.io.IOException- Throws:
java.io.IOException
-
writeString
public void writeString(java.lang.String text) throws java.io.IOException- Specified by:
writeStringin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOException
-
writeString
public void writeString(char[] text, int offset, int len) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeStringin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeString
public final void writeString(com.fasterxml.jackson.core.SerializableString sstr) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Overrides:
writeStringin classcom.fasterxml.jackson.core.base.GeneratorBase- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeRawUTF8String
public void writeRawUTF8String(byte[] text, int offset, int len) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeRawUTF8Stringin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeUTF8String
public final void writeUTF8String(byte[] text, int offset, int len) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeUTF8Stringin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeRaw
public void writeRaw(java.lang.String text) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeRawin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeRaw
public void writeRaw(java.lang.String text, int offset, int len) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeRawin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeRaw
public void writeRaw(char[] text, int offset, int len) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeRawin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeRaw
public void writeRaw(char c) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeRawin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeRawValue
public void writeRawValue(java.lang.String text) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Overrides:
writeRawValuein classcom.fasterxml.jackson.core.base.GeneratorBase- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeRawValue
public void writeRawValue(java.lang.String text, int offset, int len) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Overrides:
writeRawValuein classcom.fasterxml.jackson.core.base.GeneratorBase- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeRawValue
public void writeRawValue(char[] text, int offset, int len) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Overrides:
writeRawValuein classcom.fasterxml.jackson.core.base.GeneratorBase- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeBinary
public void writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant, byte[] data, int offset, int len) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeBinaryin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeBinary
public int writeBinary(java.io.InputStream data, int dataLength) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Overrides:
writeBinaryin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeBinary
public int writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant, java.io.InputStream data, int dataLength) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Overrides:
writeBinaryin classcom.fasterxml.jackson.core.base.GeneratorBase- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeBoolean
public void writeBoolean(boolean state) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeBooleanin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeNull
public void writeNull() throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeNullin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeNumber
public void writeNumber(int i) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeNumber
public void writeNumber(long l) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeNumber
public void writeNumber(java.math.BigInteger v) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeNumber
public void writeNumber(double d) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeNumber
public void writeNumber(float f) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeNumber
public void writeNumber(java.math.BigDecimal dec) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
writeNumber
public void writeNumber(java.lang.String encodedValue) throws java.io.IOException- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
java.io.IOException
-
_writeIntegralNumber
protected void _writeIntegralNumber(java.lang.String enc, boolean neg) throws java.io.IOException- Throws:
java.io.IOException
-
_writeDecimalNumber
protected void _writeDecimalNumber(java.lang.String enc) throws java.io.IOException- Throws:
java.io.IOException
-
_verifyValueWrite
protected final void _verifyValueWrite(java.lang.String typeMsg) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException- Specified by:
_verifyValueWritein classcom.fasterxml.jackson.core.base.GeneratorBase- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
flush
public final void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Specified by:
flushin classcom.fasterxml.jackson.core.base.GeneratorBase- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classcom.fasterxml.jackson.core.base.GeneratorBase- Throws:
java.io.IOException
-
_write7BitBinaryWithLength
protected void _write7BitBinaryWithLength(byte[] data, int offset, int len) throws java.io.IOException- Throws:
java.io.IOException
-
_write7BitBinaryWithLength
protected int _write7BitBinaryWithLength(java.io.InputStream in, int bytesLeft, byte[] buffer) throws java.io.IOException- Throws:
java.io.IOException
-
_releaseBuffers
protected void _releaseBuffers()
- Specified by:
_releaseBuffersin classcom.fasterxml.jackson.core.base.GeneratorBase
-
_flushBuffer
protected final void _flushBuffer() throws java.io.IOException- Throws:
java.io.IOException
-
outputOffset
protected long outputOffset()
Method for accessing offset of the next byte within the whole output stream that this generator has produced.
-
_notSupported
protected java.lang.UnsupportedOperationException _notSupported()
-
-