Package com.amazon.ion.impl.bin
Interface _Private_IonManagedWriter
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable,Faceted,java.io.Flushable,IonWriter
@Deprecated public interface _Private_IonManagedWriter extends IonWriter
Deprecated.This is a private API subject to change without notice.AnIonWriterthat manages local symbol tables, while providing access to its underlying IonRawWriter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description _Private_IonRawWritergetRawWriter()Deprecated.Get the underlying raw user value writer.voidrequireLocalSymbolTable()Deprecated.If a local symbol table has not already been started by this writer since it was constructed or last finished, start writing a local symbol table by opening the struct and declaring the imports.-
Methods inherited from interface com.amazon.ion.IonWriter
addTypeAnnotation, close, finish, flush, getSymbolTable, isInStruct, setFieldName, setFieldNameSymbol, setTypeAnnotations, setTypeAnnotationSymbols, stepIn, stepOut, writeBlob, writeBlob, writeBool, writeClob, writeClob, writeDecimal, writeFloat, writeInt, writeInt, writeNull, writeNull, writeString, writeSymbol, writeSymbolToken, writeTimestamp, writeTimestampUTC, writeValue, writeValue, writeValues
-
-
-
-
Method Detail
-
getRawWriter
_Private_IonRawWriter getRawWriter()
Deprecated.Get the underlying raw user value writer. This may be used to directly write user values, field names, and annotations, bypassing any symbol table management performed by this IonManagedWriter.- Returns:
- the
_Private_IonRawWriterresponsible for writing this IonManagedWriter's user values.
-
requireLocalSymbolTable
void requireLocalSymbolTable() throws java.io.IOExceptionDeprecated.If a local symbol table has not already been started by this writer since it was constructed or last finished, start writing a local symbol table by opening the struct and declaring the imports. Any local symbols subsequently written using this IonManagedWriter will be appended as they are encountered. When using the raw writer, a call to this API is required unless one of the following applies:- The user won't be writing any symbols.
- The user has manually written the symbol table struct to the correct raw writer. In this case, making this call would start a new (and probably redundant) symbol table context, which is wasteful but not harmful.
- The user definitely will be writing more symbols in this context using the managed writer.
- Throws:
java.io.IOException
-
-