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, canOmitFields, canUseSchema, canWriteBinaryNatively, canWriteFormattedNumbers, canWriteObjectId, canWriteTypeId, configure, copyCurrentEvent, copyCurrentStructure, getCharacterEscapes, getFormatFeatures, getHighestEscapedChar, getOutputBuffered, getOutputTarget, getPrettyPrinter, getSchema, isEnabled, overrideFormatFeatures, setCharacterEscapes, setHighestNonEscapedChar, setPrettyPrinter, setRootValueSeparator, setSchema, writeArray, writeArray, writeArray, writeArrayFieldStart, writeBinary, writeBinary, writeBinary, writeBinaryField, writeBooleanField, writeEmbeddedObject, writeFieldId, writeNullField, writeNumber, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectField, writeObjectFieldStart, writeObjectId, writeObjectRef, writeOmittedField, writeRaw, writeStartArray, writeStartArray, writeStartArray, writeStartObject, writeString, writeStringField, writeTypeId, writeTypePrefix, writeTypeSuffix
public 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.IOException
public void writeStartArray() throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
writeStartArray
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeEndArray() throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
writeEndArray
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeStartObject() throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
writeStartObject
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeEndObject() throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
writeEndObject
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeFieldName(java.lang.String name) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
writeFieldName
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public 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 void writeString(java.lang.String text) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
writeString
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeString(char[] text, int offset, int len) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
writeString
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeRawUTF8String(byte[] text, int offset, int length) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
writeRawUTF8String
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeUTF8String(byte[] text, int offset, int length) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
writeUTF8String
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeRaw(java.lang.String text) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
writeRaw
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public 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.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeRaw(char[] text, int offset, int len) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
writeRaw
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeRaw(char c) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
writeRaw
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public 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.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeNumber(int v) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeNumber(long v) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeNumber(java.math.BigInteger v) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeNumber(double d) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeNumber(float f) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeNumber(java.math.BigDecimal dec) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public 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.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
java.lang.UnsupportedOperationException
public void writeBoolean(boolean state) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
writeBoolean
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeNull() throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
writeNull
in class com.fasterxml.jackson.core.JsonGenerator
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeExtensionType(MessagePackExtensionType extensionType) throws java.io.IOException
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
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class com.fasterxml.jackson.core.base.GeneratorBase
java.io.IOException
protected void _releaseBuffers()
_releaseBuffers
in class com.fasterxml.jackson.core.base.GeneratorBase
protected void _verifyValueWrite(java.lang.String typeMsg) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
_verifyValueWrite
in class com.fasterxml.jackson.core.base.GeneratorBase
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException