| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | IonWriterSystemBinary.
Implements patching of the internal OutputStream with actual value lengths and types. |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | _auto_flush
Do we |
| private boolean | |
| pack-priv boolean | |
| pack-priv IonBinary. | |
| pack-priv IonWriterSystemBinary. | |
| pack-priv int | |
| pack-priv boolean[] | |
| pack-priv int[] | |
| pack-priv int[] | |
| pack-priv int[] | |
| pack-priv int | |
| pack-priv SymbolTable[] | |
| pack-priv int[] | |
| pack-priv int[] | |
| pack-priv int | |
| private int | _user_depth
This is the depth as seen by the user. |
| private final OutputStream | _user_output_stream
Not null |
| pack-priv IonBinary. | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | IonWriterSystemBinary(SymbolTable defaultSystemSymtab, OutputStream
OutputStream the users output byte stream, if specified out, boolean when true the writer flushes to the output stream
between top level values autoFlush, boolean when true, an initial IVM will be emitted even
when the user doesn't explicitly write one. When false, an initial IVM
won't be emitted unless the user does it. That can result in an invalid
Ion stream if not used carefully. ensureInitialIvm)
|
| Modifier and Type | Method and Description |
|---|---|
| protected final boolean | |
| public final void | close()
Implements com. Closes this stream and releases any system resources associated with it. |
| private final void | |
| public void | finish()
Overrides com. 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 final 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. |
| protected final IonType | |
| public final int | getDepth()
Implements abstract com. Returns the current depth of containers the writer is at. |
| pack-priv final OutputStream | |
| pack-priv final SymbolTable | inject_local_symbol_table()
Overrides com. Builds a new local symbol table from the current contextual symtab (a system symtab). |
| public final boolean | isInStruct()
Implements com. Determines whether values are being written as fields of a struct. |
| private final int | |
| private final void | |
| public final void | stepIn(IonType containerType)
Implements com. Writes the beginning of a non-null container (list, sexp, or struct). |
| public final void | stepOut()
Implements com. Writes the end of the current container, returning this writer to the context of parent container. |
| private final boolean | |
| private final int | |
| private final int | |
| protected int | |
| private void | |
| public void | writeBlob(byte[]
bytes to be written.
May be value, int null to represent null.blob.offset of the first byte in value to write start, int number of bytes to write from value len)Implements com. Writes a portion of the byte array out as an IonBlob value. |
| public void | writeBool(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 | |
| pack-priv int | writeBytes(OutputStream userstream)
Writes everything we've got into the output stream, performing all necessary patches along the way. |
| public void | writeClob(byte[]
bytes to be written.
May be value, int null to represent null.clob.offset of the first byte in value to write start, int number of bytes to write from value len)Implements com. Writes a portion of the byte array out as an IonClob value. |
| public void | writeDecimal(BigDecimal
may be null to represent value)null.decimal.Implements abstract com. Implements com. Writes a BigDecimal value as an Ion decimal. |
| public void | writeFloat(double
double to write value)Implements com. writes a 64 bit binary floating point value, a Java double, as an IonFloat. |
| public void | |
| public void | |
| 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(BigInteger
BigInteger to write value)Implements com. writes a BigInteger value as an IonInt. |
| public void | |
| public void | |
| public void | |
| public void | |
| pack-priv void | writeIonVersionMarkerAsIs(SymbolTable systemSymtab)
Implements abstract com. Writes an IVM without checking preconditions or
|
| pack-priv void | writeLocalSymtab(SymbolTable symbols)
Overrides com.
|
| public void | writeNull(IonType
type of the null to be written type)Implements com. Writes a null value of a specified Ion type. |
| public void | |
| pack-priv int | writeRecursive(BlockedBuffer.
|
| public void | writeString(String
may be null to represent value)null.string.Implements com. Writes a |
| public void | |
| pack-priv void | writeSymbolAsIs(int symbolId)
Implements abstract com. Writes a symbol without checking for system ID. |
| public void | writeSymbolAsIs(String value)
Implements abstract com. Writes a symbol without checking for system ID. |
| public void | writeTimestamp(Timestamp
may be null to represent value)null.timestamp.Implements com. Writes a timestamp value. |
| protected int |