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 | Field and Description |
---|---|
protected Closeable |
_destination
Highest-level output abstraction we can use; either
OutputStream or Writer.
|
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 features,
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
IonWriter s 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 |
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 |
writeString(char[] buffer,
int offset,
int length) |
void |
writeString(String value) |
void |
writeSymbol(String value) |
void |
writeTypeId(Object rawId) |
com.fasterxml.jackson.core.type.WritableTypeId |
writeTypePrefix(com.fasterxml.jackson.core.type.WritableTypeId typeIdDef) |
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, canOmitFields, canUseSchema, canWriteFormattedNumbers, canWriteObjectId, configure, copyCurrentEvent, copyCurrentStructure, 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, writeRaw, writeStartArray, writeStartArray, writeStartArray, writeStartObject, writeString, writeStringField, writeTypeSuffix
protected final com.amazon.ion.IonWriter _writer
protected final boolean _ionWriterIsManaged
protected final com.fasterxml.jackson.core.io.IOContext _ioContext
protected final Closeable _destination
public IonGenerator(int features, 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.Versioned
version
in class com.fasterxml.jackson.core.base.GeneratorBase
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
public boolean isClosed()
isClosed
in class com.fasterxml.jackson.core.base.GeneratorBase
public boolean canWriteTypeId()
canWriteTypeId
in class com.fasterxml.jackson.core.JsonGenerator
public boolean canWriteBinaryNatively()
canWriteBinaryNatively
in class com.fasterxml.jackson.core.JsonGenerator
public com.fasterxml.jackson.core.util.JacksonFeatureSet<com.fasterxml.jackson.core.StreamWriteCapability> getWriteCapabilities()
getWriteCapabilities
in class com.fasterxml.jackson.core.JsonGenerator
public void writeNumber(int value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeNumber(long value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeNumber(BigInteger value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeNumber(double value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeNumber(float value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeNumber(BigDecimal value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeNumber(String value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException, UnsupportedOperationException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
UnsupportedOperationException
public void writeSymbol(String value) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
public void annotateNextValue(String annotation)
stepIn()
or one of the
IonWriter
s write*()
methods.annotation
- a type annotationIonAnnotationTypeSerializer
public void writeDate(Calendar value) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
public void writeString(String value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeString
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeString(char[] buffer, int offset, int length) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeString
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeUTF8String(byte[] buffer, int offset, int length) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeUTF8String
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeRaw(String value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeRaw
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeRaw(char value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeRaw
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeRaw(String value, int arg1, int arg2) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeRaw
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeRaw(char[] value, int arg1, int arg2) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeRaw
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeRawValue(String value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeRawValue
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeRawValue(String value, int arg1, int arg2) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeRawValue
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeRawValue(char[] value, int arg1, int arg2) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeRawValue
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeRawUTF8String(byte[] text, int offset, int length) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeRawUTF8String
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeBinary(com.fasterxml.jackson.core.Base64Variant b64v, byte[] data, int offset, int length) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeBinary
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeBoolean(boolean value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeBoolean
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeNull() throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeNull
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeNull(com.amazon.ion.IonType ionType) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeObject(Object pojo) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
writeObject
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
com.fasterxml.jackson.core.JsonProcessingException
public void writeValue(com.amazon.ion.IonValue value) throws IOException
IOException
public void writeValue(com.amazon.ion.Timestamp value) throws IOException
IOException
protected void _releaseBuffers()
_releaseBuffers
in class com.fasterxml.jackson.core.base.GeneratorBase
protected void _verifyValueWrite(String msg) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
_verifyValueWrite
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeEndArray() throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeEndArray
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeEndObject() throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeEndObject
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeFieldName(String value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeFieldName
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
protected void _writeFieldName(String value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeStartArray() throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeStartArray
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeStartObject() throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeStartObject
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeTypeId(Object rawId) throws IOException
writeTypeId
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public com.fasterxml.jackson.core.type.WritableTypeId writeTypePrefix(com.fasterxml.jackson.core.type.WritableTypeId typeIdDef) throws IOException
writeTypePrefix
in class com.fasterxml.jackson.core.JsonGenerator
IOException
protected void _reportNoRaw() throws IOException
IOException
Copyright © 2020 FasterXML. All rights reserved.