public class MessagePackGenerator
extends com.fasterxml.jackson.core.base.GeneratorBase
_cfgNumbersAsStrings, _closed, _features, _ioContext, _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, _checkRangeBoundsForByteArray, _checkRangeBoundsForCharArray, _checkRangeBoundsForString, _checkStdFeatureChanges, _constructDefaultPrettyPrinter, _decodeSurrogate, assignCurrentValue, currentValue, disable, enable, getCodec, getFeatureMask, getOutputContext, ioContext, isClosed, isEnabled, overrideStdFeatures, setCodec, setFeatureMask, useDefaultPrettyPrinter, version, writeBinary, writeObject, writeRawValue, writeRawValue, writeRawValue, writeRawValue, writeStartObject, writeString, writeTree_constructWriteException, _constructWriteException, _constructWriteException, _constructWriteException, _copyCurrentContents, _copyCurrentFloatValue, _copyCurrentFloatValueExact, _copyCurrentIntValue, _copyCurrentStringValue, _reportError, _reportUnsupportedOperation, _reportUnsupportedOperation, _throwInternal, _verifyOffsets, _writeSimpleObject, canOmitFields, canUseSchema, canWriteBinaryNatively, canWriteFormattedNumbers, canWriteObjectId, canWriteTypeId, configure, copyCurrentEvent, copyCurrentEventExact, copyCurrentStructure, getCharacterEscapes, getCurrentValue, getFormatFeatures, getHighestEscapedChar, getOutputBuffered, getOutputTarget, getPrettyPrinter, getSchema, getWriteCapabilities, isEnabled, overrideFormatFeatures, setCharacterEscapes, setCurrentValue, setHighestNonEscapedChar, setPrettyPrinter, setRootValueSeparator, setSchema, streamWriteConstraints, 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()
writeStartArray in class com.fasterxml.jackson.core.JsonGeneratorpublic void writeEndArray()
throws java.io.IOException
writeEndArray in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeStartObject()
writeStartObject in class com.fasterxml.jackson.core.JsonGeneratorpublic void writeEndObject()
throws java.io.IOException
writeEndObject in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeFieldName(java.lang.String name)
writeFieldName in class com.fasterxml.jackson.core.JsonGeneratorpublic void writeFieldName(com.fasterxml.jackson.core.SerializableString name)
writeFieldName in class com.fasterxml.jackson.core.base.GeneratorBasepublic void writeString(java.lang.String text)
throws java.io.IOException
writeString in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeString(char[] text,
int offset,
int len)
throws java.io.IOException
writeString in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeRawUTF8String(byte[] text,
int offset,
int length)
throws java.io.IOException
writeRawUTF8String in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeUTF8String(byte[] text,
int offset,
int length)
throws java.io.IOException
writeUTF8String in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeRaw(java.lang.String text)
throws java.io.IOException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeRaw(java.lang.String text,
int offset,
int len)
throws java.io.IOException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeRaw(char[] text,
int offset,
int len)
throws java.io.IOException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeRaw(char c)
throws java.io.IOException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic 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.JsonGeneratorjava.io.IOExceptionpublic void writeNumber(int v)
throws java.io.IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeNumber(long v)
throws java.io.IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeNumber(java.math.BigInteger v)
throws java.io.IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeNumber(double d)
throws java.io.IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeNumber(float f)
throws java.io.IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeNumber(java.math.BigDecimal dec)
throws java.io.IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeNumber(java.lang.String encodedValue)
throws java.io.IOException,
java.lang.UnsupportedOperationException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionjava.lang.UnsupportedOperationExceptionpublic void writeBoolean(boolean state)
throws java.io.IOException
writeBoolean in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeNull()
throws java.io.IOException
writeNull in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic 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
_verifyValueWrite in class com.fasterxml.jackson.core.base.GeneratorBasejava.io.IOException