public class IonGenerator
extends com.fasterxml.jackson.core.base.GeneratorBase
JsonGenerator that will use an underlying
IonWriter for actual writing of content.| Modifier and Type | Class and Description |
|---|---|
static class |
IonGenerator.Feature
Enumeration that defines all toggleable features for Ion generators
|
| Modifier and Type | Field and Description |
|---|---|
protected Closeable |
_destination
Highest-level output abstraction we can use; either
OutputStream or Writer.
|
protected int |
_formatFeatures
Bit flag composed of bits that indicate which
IonGenerator.Features
are enabled. |
protected com.fasterxml.jackson.core.io.IOContext |
_ioContext |
protected boolean |
_ionWriterIsManaged |
protected com.amazon.ion.IonWriter |
_writer |
_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 |
|---|
IonGenerator(int jsonFeatures,
int ionFeatures,
com.fasterxml.jackson.core.ObjectCodec codec,
com.amazon.ion.IonWriter ion,
boolean ionWriterIsManaged,
com.fasterxml.jackson.core.io.IOContext ctxt,
Closeable dst) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_releaseBuffers() |
protected void |
_reportNoRaw() |
protected void |
_verifyValueWrite(String msg) |
protected void |
_writeFieldName(String value) |
void |
annotateNextValue(String annotation)
Annotates the next structure or value written --
stepIn() or one of the
IonWriters write*() methods. |
boolean |
canWriteBinaryNatively() |
boolean |
canWriteTypeId() |
void |
close() |
void |
flush() |
com.fasterxml.jackson.core.util.JacksonFeatureSet<com.fasterxml.jackson.core.StreamWriteCapability> |
getWriteCapabilities() |
boolean |
isClosed() |
String |
toString() |
com.fasterxml.jackson.core.Version |
version() |
void |
writeBinary(com.fasterxml.jackson.core.Base64Variant b64v,
byte[] data,
int offset,
int length) |
void |
writeBoolean(boolean value) |
void |
writeDate(Calendar value) |
void |
writeEndArray() |
void |
writeEndObject() |
void |
writeEndSexp() |
void |
writeFieldName(String value) |
void |
writeNull() |
void |
writeNull(com.amazon.ion.IonType ionType) |
void |
writeNumber(BigDecimal value) |
void |
writeNumber(BigInteger value) |
void |
writeNumber(double value) |
void |
writeNumber(float value) |
void |
writeNumber(int value) |
void |
writeNumber(long value) |
void |
writeNumber(String value) |
void |
writeObject(Object pojo) |
void |
writeRaw(char value) |
void |
writeRaw(char[] value,
int arg1,
int arg2) |
void |
writeRaw(String value) |
void |
writeRaw(String value,
int arg1,
int arg2) |
void |
writeRawUTF8String(byte[] text,
int offset,
int length) |
void |
writeRawValue(char[] value,
int arg1,
int arg2) |
void |
writeRawValue(String value) |
void |
writeRawValue(String value,
int arg1,
int arg2) |
void |
writeStartArray() |
void |
writeStartObject() |
void |
writeStartSexp() |
void |
writeString(char[] buffer,
int offset,
int length) |
void |
writeString(String value) |
void |
writeSymbol(String value) |
void |
writeTypeId(Object rawId) |
void |
writeUTF8String(byte[] buffer,
int offset,
int length) |
void |
writeValue(com.amazon.ion.IonValue value) |
void |
writeValue(com.amazon.ion.Timestamp value) |
_asString, _checkStdFeatureChanges, _constructDefaultPrettyPrinter, _decodeSurrogate, disable, enable, getCodec, getCurrentValue, getFeatureMask, getOutputContext, isEnabled, overrideStdFeatures, setCodec, setCurrentValue, setFeatureMask, useDefaultPrettyPrinter, writeBinary, writeFieldName, writeRawValue, writeStartObject, writeString, writeTree_copyCurrentContents, _reportError, _reportUnsupportedOperation, _throwInternal, _verifyOffsets, _writeSimpleObject, assignCurrentValue, canOmitFields, canUseSchema, canWriteFormattedNumbers, canWriteObjectId, configure, copyCurrentEvent, copyCurrentStructure, currentValue, getCharacterEscapes, getFormatFeatures, getHighestEscapedChar, getOutputBuffered, getOutputTarget, getPrettyPrinter, getSchema, 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, writeTypePrefix, writeTypeSuffixprotected final com.amazon.ion.IonWriter _writer
protected final boolean _ionWriterIsManaged
protected final com.fasterxml.jackson.core.io.IOContext _ioContext
protected int _formatFeatures
IonGenerator.Features
are enabled.protected final Closeable _destination
public IonGenerator(int jsonFeatures,
int ionFeatures,
com.fasterxml.jackson.core.ObjectCodec codec,
com.amazon.ion.IonWriter ion,
boolean ionWriterIsManaged,
com.fasterxml.jackson.core.io.IOContext ctxt,
Closeable dst)
public com.fasterxml.jackson.core.Version version()
version in interface com.fasterxml.jackson.core.Versionedversion 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.GeneratorBaseIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class com.fasterxml.jackson.core.base.GeneratorBaseIOExceptionpublic boolean isClosed()
isClosed in class com.fasterxml.jackson.core.base.GeneratorBasepublic boolean canWriteTypeId()
canWriteTypeId in class com.fasterxml.jackson.core.JsonGeneratorpublic boolean canWriteBinaryNatively()
canWriteBinaryNatively in class com.fasterxml.jackson.core.JsonGeneratorpublic com.fasterxml.jackson.core.util.JacksonFeatureSet<com.fasterxml.jackson.core.StreamWriteCapability> getWriteCapabilities()
getWriteCapabilities in class com.fasterxml.jackson.core.JsonGeneratorpublic void writeNumber(int value)
throws IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNumber(long value)
throws IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNumber(BigInteger value) throws IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNumber(double value)
throws IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNumber(float value)
throws IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNumber(BigDecimal value) throws IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNumber(String value) throws IOException, UnsupportedOperationException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionUnsupportedOperationExceptionpublic void writeSymbol(String value) throws IOException
IOExceptionpublic void annotateNextValue(String annotation)
stepIn() or one of the
IonWriters write*() methods.annotation - a type annotationIonAnnotationTypeSerializerpublic void writeDate(Calendar value) throws IOException
IOExceptionpublic void writeString(String value) throws IOException
writeString in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeString(char[] buffer,
int offset,
int length)
throws IOException
writeString in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeUTF8String(byte[] buffer,
int offset,
int length)
throws IOException
writeUTF8String in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeRaw(String value) throws IOException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeRaw(char value)
throws IOException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeRaw(String value, int arg1, int arg2) throws IOException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeRaw(char[] value,
int arg1,
int arg2)
throws IOException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeRawValue(String value) throws IOException
writeRawValue in class com.fasterxml.jackson.core.base.GeneratorBaseIOExceptionpublic void writeRawValue(String value, int arg1, int arg2) throws IOException
writeRawValue in class com.fasterxml.jackson.core.base.GeneratorBaseIOExceptionpublic void writeRawValue(char[] value,
int arg1,
int arg2)
throws IOException
writeRawValue in class com.fasterxml.jackson.core.base.GeneratorBaseIOExceptionpublic void writeRawUTF8String(byte[] text,
int offset,
int length)
throws IOException
writeRawUTF8String in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeBinary(com.fasterxml.jackson.core.Base64Variant b64v,
byte[] data,
int offset,
int length)
throws IOException
writeBinary in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeBoolean(boolean value)
throws IOException
writeBoolean in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNull()
throws IOException
writeNull in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNull(com.amazon.ion.IonType ionType)
throws IOException
IOExceptionpublic void writeObject(Object pojo) throws IOException
writeObject in class com.fasterxml.jackson.core.base.GeneratorBaseIOExceptionpublic void writeValue(com.amazon.ion.IonValue value)
throws IOException
IOExceptionpublic void writeValue(com.amazon.ion.Timestamp value)
throws IOException
IOExceptionprotected void _releaseBuffers()
_releaseBuffers in class com.fasterxml.jackson.core.base.GeneratorBaseprotected void _verifyValueWrite(String msg) throws IOException
_verifyValueWrite in class com.fasterxml.jackson.core.base.GeneratorBaseIOExceptionpublic void writeEndArray()
throws IOException
writeEndArray in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeEndObject()
throws IOException
writeEndObject in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeEndSexp()
throws IOException
IOExceptionpublic void writeFieldName(String value) throws IOException
writeFieldName in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionprotected void _writeFieldName(String value) throws IOException
IOExceptionpublic void writeStartArray()
throws IOException
writeStartArray in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeStartObject()
throws IOException
writeStartObject in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeStartSexp()
throws IOException
IOExceptionpublic void writeTypeId(Object rawId) throws IOException
writeTypeId in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionprotected void _reportNoRaw()
throws IOException
IOExceptionCopyright © 2021 FasterXML. All rights reserved.