public class NBTGenerator
extends com.fasterxml.jackson.core.base.GeneratorBase
| Modifier and Type | Field and Description |
|---|---|
protected int |
_formatFeatures |
protected com.fasterxml.jackson.core.io.IOContext |
_ioContext |
protected DataOutput |
_out |
protected NBTWriteContext |
rootContext |
_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 |
|---|
NBTGenerator(com.fasterxml.jackson.core.io.IOContext context,
int jsonFeatures,
int nbtFeatures,
com.fasterxml.jackson.core.ObjectCodec codec,
OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_releaseBuffers() |
protected void |
_verifyValueWrite(String typeMsg) |
protected void |
_writeSimpleObject(Object value) |
protected void |
checkRootContext() |
void |
close() |
void |
flush() |
NBTWriteContext |
getOutputContext() |
NBTGenerator |
setPrettyPrinter(com.fasterxml.jackson.core.PrettyPrinter pp) |
NBTGenerator |
useDefaultPrettyPrinter() |
DataOutput |
wrapStream(OutputStream stream) |
void |
writeArray(int[] array,
int offset,
int length) |
void |
writeArray(long[] array,
int offset,
int length) |
void |
writeBinary(com.fasterxml.jackson.core.Base64Variant bv,
byte[] data,
int offset,
int len) |
void |
writeBinary(byte[] data) |
void |
writeBinary(byte[] data,
int offset,
int len) |
void |
writeBoolean(boolean state) |
void |
writeEndArray() |
void |
writeEndObject() |
void |
writeFieldName(String name) |
void |
writeNull() |
void |
writeNumber(BigDecimal v) |
void |
writeNumber(BigInteger v) |
void |
writeNumber(byte v) |
void |
writeNumber(double v) |
void |
writeNumber(float v) |
void |
writeNumber(int v) |
void |
writeNumber(long v) |
void |
writeNumber(short v) |
void |
writeNumber(String encodedValue) |
void |
writeRaw(char c) |
void |
writeRaw(char[] text,
int offset,
int len) |
void |
writeRaw(String text) |
void |
writeRaw(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(String text) |
void |
writeUTF8String(byte[] text,
int offset,
int length) |
_asString, _checkStdFeatureChanges, _constructDefaultPrettyPrinter, _decodeSurrogate, disable, enable, getCodec, getCurrentValue, getFeatureMask, isClosed, isEnabled, overrideStdFeatures, setCodec, setCurrentValue, setFeatureMask, version, writeBinary, writeFieldName, writeObject, writeRawValue, writeRawValue, writeRawValue, writeRawValue, writeStartObject, writeString, writeTree_copyCurrentContents, _reportError, _reportUnsupportedOperation, _throwInternal, _verifyOffsets, canOmitFields, canUseSchema, canWriteBinaryNatively, canWriteFormattedNumbers, canWriteObjectId, canWriteTypeId, configure, copyCurrentEvent, copyCurrentStructure, getCharacterEscapes, getFormatFeatures, getHighestEscapedChar, getOutputBuffered, getOutputTarget, getPrettyPrinter, getSchema, isEnabled, overrideFormatFeatures, setCharacterEscapes, setHighestNonEscapedChar, setRootValueSeparator, setSchema, writeArray, writeArrayFieldStart, writeBinary, writeBinaryField, writeBooleanField, writeEmbeddedObject, writeFieldId, writeNullField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectField, writeObjectFieldStart, writeObjectId, writeObjectRef, writeOmittedField, writeRaw, writeStartArray, writeStartArray, writeStartArray, writeStartObject, writeString, writeStringField, writeTypeId, writeTypePrefix, writeTypeSuffixprotected int _formatFeatures
protected DataOutput _out
protected final com.fasterxml.jackson.core.io.IOContext _ioContext
protected NBTWriteContext rootContext
public NBTGenerator(com.fasterxml.jackson.core.io.IOContext context,
int jsonFeatures,
int nbtFeatures,
com.fasterxml.jackson.core.ObjectCodec codec,
OutputStream out)
throws IOException
IOExceptionpublic NBTGenerator useDefaultPrettyPrinter()
useDefaultPrettyPrinter in class com.fasterxml.jackson.core.base.GeneratorBasepublic NBTGenerator setPrettyPrinter(com.fasterxml.jackson.core.PrettyPrinter pp)
setPrettyPrinter in class com.fasterxml.jackson.core.JsonGeneratorpublic void flush()
throws IOException
flush in interface Flushableflush in class com.fasterxml.jackson.core.base.GeneratorBaseIOExceptionprotected void _releaseBuffers()
_releaseBuffers in class com.fasterxml.jackson.core.base.GeneratorBasepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class com.fasterxml.jackson.core.base.GeneratorBaseIOExceptionprotected void _verifyValueWrite(String typeMsg) throws IOException
_verifyValueWrite in class com.fasterxml.jackson.core.base.GeneratorBaseIOExceptionpublic void writeStartArray()
throws IOException
writeStartArray in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeEndArray()
throws IOException
writeEndArray in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeStartObject()
throws IOException
writeStartObject in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeEndObject()
throws IOException
writeEndObject in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeFieldName(String name) throws IOException
writeFieldName in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeString(String text) throws IOException
writeString in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeString(char[] text,
int offset,
int len)
throws IOException
writeString in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeRawUTF8String(byte[] text,
int offset,
int length)
throws IOException
writeRawUTF8String in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeUTF8String(byte[] text,
int offset,
int length)
throws IOException
writeUTF8String in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeRaw(String text) throws IOException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeRaw(String text, int offset, int len) throws IOException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeRaw(char[] text,
int offset,
int len)
throws IOException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeRaw(char c)
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorpublic void writeBinary(byte[] data)
throws IOException
writeBinary in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeBinary(byte[] data,
int offset,
int len)
throws IOException
writeBinary in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeBinary(com.fasterxml.jackson.core.Base64Variant bv,
byte[] data,
int offset,
int len)
throws IOException
writeBinary in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNumber(int v)
throws IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNumber(long v)
throws IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNumber(BigInteger v)
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorpublic void writeNumber(double v)
throws IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNumber(float v)
throws IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNumber(short v)
throws IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNumber(byte v)
throws IOException
IOExceptionpublic void writeNumber(BigDecimal v)
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorpublic void writeNumber(String encodedValue)
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorpublic void writeBoolean(boolean state)
throws IOException
writeBoolean in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNull()
writeNull in class com.fasterxml.jackson.core.JsonGeneratorpublic void writeArray(int[] array,
int offset,
int length)
throws IOException
writeArray in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeArray(long[] array,
int offset,
int length)
throws IOException
writeArray in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic NBTWriteContext getOutputContext()
getOutputContext in class com.fasterxml.jackson.core.base.GeneratorBaseprotected void _writeSimpleObject(Object value) throws IOException
_writeSimpleObject in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionprotected void checkRootContext()
public DataOutput wrapStream(OutputStream stream) throws IOException
IOExceptionCopyright © 2021 FasterXML. All rights reserved.