public class MessagePackGenerator
extends 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 and Description |
|---|
MessagePackGenerator(int features,
com.fasterxml.jackson.core.ObjectCodec codec,
java.io.OutputStream out,
org.msgpack.core.MessagePack.PackerConfig packerConfig,
boolean reuseResourceInGenerator) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_releaseBuffers() |
protected void |
_verifyValueWrite(java.lang.String typeMsg) |
void |
close() |
void |
flush() |
void |
writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant,
byte[] data,
int offset,
int len) |
void |
writeBoolean(boolean state) |
void |
writeEndArray() |
void |
writeEndObject() |
void |
writeExtensionType(MessagePackExtensionType extensionType) |
void |
writeFieldName(com.fasterxml.jackson.core.SerializableString name) |
void |
writeFieldName(java.lang.String name) |
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 v) |
void |
writeNumber(long v) |
void |
writeNumber(java.lang.String encodedValue) |
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 length) |
void |
writeStartArray() |
void |
writeStartObject() |
void |
writeString(char[] text,
int offset,
int len) |
void |
writeString(java.lang.String text) |
void |
writeUTF8String(byte[] text,
int offset,
int length) |
_asString, _checkStdFeatureChanges, _constructDefaultPrettyPrinter, _decodeSurrogate, disable, enable, getCodec, getCurrentValue, getFeatureMask, getOutputContext, isClosed, isEnabled, overrideStdFeatures, setCodec, setCurrentValue, setFeatureMask, useDefaultPrettyPrinter, version, writeBinary, writeObject, writeRawValue, writeRawValue, writeRawValue, writeRawValue, writeStartObject, writeString, writeTree_copyCurrentContents, _reportError, _reportUnsupportedOperation, _throwInternal, _verifyOffsets, _writeSimpleObject, assignCurrentValue, canOmitFields, canUseSchema, canWriteBinaryNatively, canWriteFormattedNumbers, canWriteObjectId, canWriteTypeId, configure, copyCurrentEvent, copyCurrentStructure, currentValue, getCharacterEscapes, getFormatFeatures, getHighestEscapedChar, getOutputBuffered, getOutputTarget, getPrettyPrinter, getSchema, getWriteCapabilities, isEnabled, overrideFormatFeatures, setCharacterEscapes, setHighestNonEscapedChar, setPrettyPrinter, setRootValueSeparator, setSchema, writeArray, writeArray, writeArray, writeArray, writeArrayFieldStart, writeBinary, 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, writeStartArray, writeStartObject, writeString, writeStringField, writeTypeId, writeTypePrefix, writeTypeSuffixpublic MessagePackGenerator(int features,
com.fasterxml.jackson.core.ObjectCodec codec,
java.io.OutputStream out,
org.msgpack.core.MessagePack.PackerConfig packerConfig,
boolean reuseResourceInGenerator)
throws java.io.IOException
java.io.IOExceptionpublic void writeStartArray()
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeStartArray in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeEndArray()
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeEndArray in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeStartObject()
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeStartObject in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeEndObject()
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeEndObject in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeFieldName(java.lang.String name)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeFieldName in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeFieldName(com.fasterxml.jackson.core.SerializableString name)
throws java.io.IOException
writeFieldName in class com.fasterxml.jackson.core.base.GeneratorBasejava.io.IOExceptionpublic void writeString(java.lang.String text)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeString in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeString(char[] text,
int offset,
int len)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeString in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeRawUTF8String(byte[] text,
int offset,
int length)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeRawUTF8String in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeUTF8String(byte[] text,
int offset,
int length)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeUTF8String in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeRaw(java.lang.String text)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeRaw(java.lang.String text,
int offset,
int len)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeRaw(char[] text,
int offset,
int len)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeRaw(char c)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant,
byte[] data,
int offset,
int len)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeBinary in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeNumber(int v)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeNumber(long v)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeNumber(java.math.BigInteger v)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeNumber(double d)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeNumber(float f)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeNumber(java.math.BigDecimal dec)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeNumber(java.lang.String encodedValue)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException,
java.lang.UnsupportedOperationException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionjava.lang.UnsupportedOperationExceptionpublic void writeBoolean(boolean state)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeBoolean in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeNull()
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeNull in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeExtensionType(MessagePackExtensionType extensionType) throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class com.fasterxml.jackson.core.base.GeneratorBasejava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class com.fasterxml.jackson.core.base.GeneratorBasejava.io.IOExceptionprotected void _releaseBuffers()
_releaseBuffers in class com.fasterxml.jackson.core.base.GeneratorBaseprotected void _verifyValueWrite(java.lang.String typeMsg)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonGenerationException
_verifyValueWrite in class com.fasterxml.jackson.core.base.GeneratorBasejava.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException