References Deprecated
_Private_IonManagedWriter is deprecated or references (maybe indirectly) at least one deprecated element.
See corresponding docs for further information.
IonRawBinaryWriter with symbol table management.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv static class | IonManagedBinaryWriter.
Provides the import context for the writer. |
| pack-priv static enum | IonManagedBinaryWriter.
Determines how imported symbols are resolved (including system symbols). |
| private static class | |
| private class | IonManagedBinaryWriter.
View over the internal local symbol table state as a symbol table. |
| private static interface | |
| private static interface | |
| private static enum | |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final IonManagedBinaryWriter. | |
| private final IonCatalog | |
| private boolean | |
| private static final SymbolTable[] | |
| private IonManagedBinaryWriter. | |
| private boolean | |
| private final Map | |
| private boolean | |
| private SymbolTable | |
| private final boolean | |
| pack-priv static final IonManagedBinaryWriter. | |
| private final IonRawBinaryWriter | symbols
References Deprecated
IonRawBinaryWriter is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private IonManagedBinaryWriter. | |
| private final IonRawBinaryWriter | user
References Deprecated
IonRawBinaryWriter is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private final IonManagedBinaryWriter. | |
| private final List | |
| private IonManagedBinaryWriter. | |
| private final List | |
| private long |
| Access | Constructor and Description |
|---|---|
| pack-priv | IonManagedBinaryWriter(final _Private_IonManagedBinaryWriterBuilder builder, final OutputStream out)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addTypeAnnotation(final String
string annotation to append to the annotation list annotation)Implements com. Adds a given string to the list of pending annotations. |
| public void | close()
Implements com. Closes this stream and releases any system resources associated with it. |
| public void | finish()
Implements com. Indicates that writing is completed and all buffered data should be written and flushed as if this were the end of the Ion data stream. |
| public void | flush()
Implements com. Flushes this writer by writing any buffered output to the underlying output target without finalizing the stream's local symbol table. |
| public IonCatalog | getCatalog()
Implements com. Mostly for testing at this point, but could be useful public API. |
| public int | getDepth()
Implements com. Returns the current depth of containers the writer is at. |
| public _Private_IonRawWriter | getRawWriter()
Implements com.
References Deprecated
_Private_IonRawWriter is deprecated or references (maybe indirectly) at least one deprecated element.
Get the underlying raw user value writer. |
| public SymbolTable | getSymbolTable()
Implements com. Gets the symbol table that is currently in use by the writer. |
| private boolean | |
| private SymbolToken | |
| private SymbolToken | |
| public boolean | isFieldNameSet()
Implements com. Returns true if the field name has been set either through setFieldName or setFieldId. |
| public boolean | isInStruct()
Implements com. Determines whether values are being written as fields of a struct. |
| public void | requireLocalSymbolTable()
Implements com. 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. |
| public void | setFieldName(final String
text of the field name name)Implements com. Sets the pending field name to the given text. |
| public void | setFieldNameSymbol(SymbolToken
text of the field name token)Implements com. Sets the pending field name to the given token. |
| public void | setTypeAnnotations(final String...
string array with the annotations.
If null or empty, any pending annotations are cleared. annotations)Implements com. Sets the full list of pending annotations to the given text symbols. |
| public void | setTypeAnnotationSymbols(final SymbolToken...
If null or empty, any pending annotations are cleared. annotations)Implements com. Sets the full list of pending annotations to the given symbols. |
| private void | |
| private void | |
| public void | stepIn(final IonType containerType)
Implements com. Writes the beginning of a non-null container (list, sexp, or struct). |
| public void | stepOut()
Implements com. Writes the end of the current container, returning this writer to the context of parent container. |
| private void | |
| public void | writeBlob(byte[]
may be null to represent data)null.blob.Implements com. write the byte array out as an IonBlob value. |
| public void | writeBlob(final byte[]
bytes to be written.
May be data, final int null to represent null.blob.offset of the first byte in value to write offset, final int number of bytes to write from value length)Implements com. Writes a portion of the byte array out as an IonBlob value. |
| public void | writeBool(final boolean
true or false as desired value)Implements com. writes a non-null boolean value (true or false) as an IonBool to output. |
| public void | writeBytes(byte[]
The byte array to write. data, int The offset in the array to write from. off, int The length of data to write. len)Implements com. Writes the given data to the sink. |
| public void | writeClob(byte[]
may be null to represent data)null.clob.Implements com. write the byte array out as an IonClob value. |
| public void | writeClob(final byte[]
bytes to be written.
May be data, final int null to represent null.clob.offset of the first byte in value to write offset, final int number of bytes to write from value length)Implements com. Writes a portion of the byte array out as an IonClob value. |
| public void | writeDecimal(final BigDecimal
may be null to represent value)null.decimal.Implements com. Writes a BigDecimal value as an Ion decimal. |
| public void | writeFloat(final double
double to write value)Implements com. writes a 64 bit binary floating point value, a Java double, as an IonFloat. |
| public void | writeInt(long
signed int to write value)Implements com. writes a signed 64 bit value, a Java long, as an IonInt. |
| public void | writeInt(final BigInteger
BigInteger to write value)Implements com. writes a BigInteger value as an IonInt. |
| public void | writeIonVersionMarker()
Implements com. Write an Ion version marker symbol to the output. |
| public void | writeNull()
Implements com. Writes a value of Ion's null type ( |
| public void | writeNull(final IonType
type of the null to be written type)Implements com. Writes a null value of a specified Ion type. |
| public void | writeString(final String
may be null to represent value)null.string.Implements com. Writes a |
| public void | writeString(byte[]
bytes to be written.
May be data, int null to represent null.string.offset of the first byte in value to write offset, int number of bytes to write from value length)Implements abstract com. Writes a portion of the byte array out as an IonString value. |
| public void | writeSymbol(String
may be null to represent content)null.symbol.Implements com. Writes the text of an Ion symbol value. |
| public void | writeSymbolToken(SymbolToken
may be null to represent token)null.symbol.Implements com. Writes the content of an Ion symbol value. |
| public void | writeTimestamp(final Timestamp
may be null to represent value)null.timestamp.Implements com. Writes a timestamp value. |