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 | _destinationHighest-level output abstraction we can use; either
 OutputStream or Writer. | 
| protected com.fasterxml.jackson.core.io.IOContext | _ioContext | 
| 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,
            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 theIonWriterswrite*()methods. | 
| boolean | canWriteBinaryNatively() | 
| boolean | canWriteTypeId() | 
| void | close() | 
| void | flush() | 
| 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, 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, writeTypeSuffixprotected final com.amazon.ion.IonWriter _writer
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,
                    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 void writeNumber(int value)
                 throws IOException,
                        com.fasterxml.jackson.core.JsonGenerationException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeNumber(long value)
                 throws IOException,
                        com.fasterxml.jackson.core.JsonGenerationException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeNumber(BigInteger value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeNumber(double value)
                 throws IOException,
                        com.fasterxml.jackson.core.JsonGenerationException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeNumber(float value)
                 throws IOException,
                        com.fasterxml.jackson.core.JsonGenerationException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeNumber(BigDecimal value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeNumber(String value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException, UnsupportedOperationException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionUnsupportedOperationExceptionpublic void writeSymbol(String value) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationExceptionIOExceptionpublic void annotateNextValue(String annotation)
stepIn() or one of the
 IonWriters write*() methods.annotation - a type annotationIonAnnotationTypeSerializerpublic void writeDate(Calendar value) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationExceptionIOExceptionpublic void writeString(String value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeString in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeString(char[] buffer,
                        int offset,
                        int length)
                 throws IOException,
                        com.fasterxml.jackson.core.JsonGenerationException
writeString in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeUTF8String(byte[] buffer,
                            int offset,
                            int length)
                     throws IOException,
                            com.fasterxml.jackson.core.JsonGenerationException
writeUTF8String in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeRaw(String value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeRaw(char value)
              throws IOException,
                     com.fasterxml.jackson.core.JsonGenerationException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeRaw(String value, int arg1, int arg2) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeRaw(char[] value,
                     int arg1,
                     int arg2)
              throws IOException,
                     com.fasterxml.jackson.core.JsonGenerationException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeRawValue(String value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeRawValue in class com.fasterxml.jackson.core.base.GeneratorBaseIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeRawValue(String value, int arg1, int arg2) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeRawValue in class com.fasterxml.jackson.core.base.GeneratorBaseIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeRawValue(char[] value,
                          int arg1,
                          int arg2)
                   throws IOException,
                          com.fasterxml.jackson.core.JsonGenerationException
writeRawValue in class com.fasterxml.jackson.core.base.GeneratorBaseIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeRawUTF8String(byte[] text,
                               int offset,
                               int length)
                        throws IOException,
                               com.fasterxml.jackson.core.JsonGenerationException
writeRawUTF8String in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic 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.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeBoolean(boolean value)
                  throws IOException,
                         com.fasterxml.jackson.core.JsonGenerationException
writeBoolean in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeNull()
               throws IOException,
                      com.fasterxml.jackson.core.JsonGenerationException
writeNull in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeNull(com.amazon.ion.IonType ionType)
               throws IOException,
                      com.fasterxml.jackson.core.JsonGenerationException
IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeObject(Object pojo) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
writeObject in class com.fasterxml.jackson.core.base.GeneratorBaseIOExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionpublic 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, com.fasterxml.jackson.core.JsonGenerationException
_verifyValueWrite in class com.fasterxml.jackson.core.base.GeneratorBaseIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeEndArray()
                   throws IOException,
                          com.fasterxml.jackson.core.JsonGenerationException
writeEndArray in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeEndObject()
                    throws IOException,
                           com.fasterxml.jackson.core.JsonGenerationException
writeEndObject in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeFieldName(String value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeFieldName in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionprotected void _writeFieldName(String value) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeStartArray()
                     throws IOException,
                            com.fasterxml.jackson.core.JsonGenerationException
writeStartArray in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeStartObject()
                      throws IOException,
                             com.fasterxml.jackson.core.JsonGenerationException
writeStartObject in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeTypeId(Object rawId) throws IOException
writeTypeId in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic com.fasterxml.jackson.core.type.WritableTypeId writeTypePrefix(com.fasterxml.jackson.core.type.WritableTypeId typeIdDef)
                                                               throws IOException
writeTypePrefix in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionprotected void _reportNoRaw()
                     throws IOException
IOExceptionCopyright © 2019 FasterXML. All rights reserved.