| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | _following_long_string
True when the last data written was a triple-quoted string, meaning we cannot write another long string lest it be incorrectly concatenated. |
| pack-priv boolean | _in_struct
True when the current container is a struct, so we write field names. |
| private boolean | _is_writing_ivm
Indicates whether we're currently writing an IVM. |
| private final int | _long_string_threshold
At least one. |
| private final _Private_IonTextWriterBuilder | _options
Not null. |
| private final _Private_IonTextAppender | |
| pack-priv boolean | |
| pack-priv CharSequence | |
| pack-priv int[] | |
| pack-priv boolean[] | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| protected | IonWriterSystemText(SymbolTable defaultSystemSymtab, _Private_IonTextWriterBuilder options, _Private_FastAppendable out)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements com. Closes this stream and releases any system resources associated with it. |
| pack-priv void | |
| pack-priv void | |
| private boolean | |
| 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. |
| pack-priv _Private_IonTextWriterBuilder | |
| protected IonType | |
| public int | getDepth()
Implements abstract com. Returns the current depth of containers the writer is at. |
| pack-priv void | |
| public boolean | isInStruct()
Implements com. Determines whether values are being written as fields of a struct. |
| pack-priv int | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | stepIn(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. |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv void | |
| pack-priv 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 | 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. |
| pack-priv void | |
| 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 | 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. |
| pack-priv void | writeIonVersionMarkerAsIs(SymbolTable systemSymtab)
Implements abstract com. Writes an IVM without checking preconditions or
|
| pack-priv void | |
| public void | writeNull()
Overrides com. Implements com. Writes a value of Ion's null type ( |
| public void | writeNull(IonType
type of the null to be written type)Implements com. Writes a null value of a specified Ion type. |
| pack-priv boolean | |
| private void | |
| public void | writeString(String
may be null to represent value)null.string.Implements com. Writes a |
| 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. |
| private void | |
| public void | writeTimestamp(Timestamp
may be null to represent value)null.timestamp.Implements com. Writes a timestamp value. |
| _closed | back to summary |
|---|---|
| private boolean _closed Ensure we don't use a closed | |
| _following_long_string | back to summary |
|---|---|
| private boolean _following_long_string True when the last data written was a triple-quoted string, meaning we cannot write another long string lest it be incorrectly concatenated. | |
| _in_struct | back to summary |
|---|---|
| pack-priv boolean _in_struct True when the current container is a struct, so we write field names. | |
| _is_writing_ivm | back to summary |
|---|---|
| private boolean _is_writing_ivm Indicates whether we're currently writing an IVM. | |
| _long_string_threshold | back to summary |
|---|---|
| private final int _long_string_threshold At least one. | |
| _options | back to summary |
|---|---|
| private final _Private_IonTextWriterBuilder _options Not null. | |
| _output | back to summary |
|---|---|
| private final _Private_IonTextAppender _output | |
| _pending_separator | back to summary |
|---|---|
| pack-priv boolean _pending_separator | |
| _separator_character | back to summary |
|---|---|
| pack-priv CharSequence _separator_character | |
| _stack_parent_type | back to summary |
|---|---|
| pack-priv int[] _stack_parent_type | |
| _stack_pending_comma | back to summary |
|---|---|
| pack-priv boolean[] _stack_pending_comma | |
| _top | back to summary |
|---|---|
| pack-priv int _top | |
| IonWriterSystemText | back to summary |
|---|---|
protected IonWriterSystemText(SymbolTable defaultSystemSymtab, _Private_IonTextWriterBuilder options, _Private_FastAppendable out)
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements com. Doc from com. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.
If the cursor is between top-level values, this method will
In other words: unless you're recovering from a failure condition, don't close the writer until you've stepped-out back to the starting level.
| |
| closeCollection | back to summary |
|---|---|
| pack-priv void closeCollection(char closeChar) throws IOException | |
| closeValue | back to summary |
|---|---|
| pack-priv void closeValue() throws IOException | |
| containerIsSexp | back to summary |
|---|---|
| private boolean containerIsSexp() | |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Implements com. Doc from com. Flushes this writer by writing any buffered output to the underlying output target without finalizing the stream's local symbol table. For some implementations this may have no effect even when some data is buffered, because it's not always possible to fully write partial data. In particular, when writing binary Ion data, Ion's length-prefixed encoding requires a complete top-level value to be written at once.
If localSymbolTableAppend is enabled (see
The
| |
| getBuilder | back to summary |
|---|---|
| pack-priv _Private_IonTextWriterBuilder getBuilder() | |
| getContainer | back to summary |
|---|---|
| protected IonType getContainer() | |
| getDepth | back to summary |
|---|---|
| public int getDepth() Implements abstract com. Doc from com. Returns the current depth of containers the writer is at. This is 0 if the writer is at top-level.
| |
| growStack | back to summary |
|---|---|
| pack-priv void growStack() | |
| isInStruct | back to summary |
|---|---|
| public boolean isInStruct() Implements com. Doc from com. Determines whether values are being written as fields of a struct. This is especially useful when it is not clear whether field names need to be written or not.
| |
| pop | back to summary |
|---|---|
| pack-priv int pop() | |
| printLeadingWhiteSpace | back to summary |
|---|---|
| pack-priv void printLeadingWhiteSpace() throws IOException | |
| push | back to summary |
|---|---|
| pack-priv void push(int typeid) | |
| startValue | back to summary |
|---|---|
| pack-priv void startValue() throws IOException Overrides com.
| |
| stepIn | back to summary |
|---|---|
| public void stepIn(IonType containerType) throws IOException Implements com. Doc from com. Writes the beginning of a non-null container (list, sexp, or struct).
This must be matched by a call to
This method is not used to write
| |
| stepOut | back to summary |
|---|---|
| public void stepOut() throws IOException Implements com. Doc from com. Writes the end of the current container, returning this writer to the
context of parent container.
Invocation of this method must match a preceding call to
| |
| topPendingComma | back to summary |
|---|---|
| pack-priv boolean topPendingComma() | |
| topType | back to summary |
|---|---|
pack-priv int topType()
| |
| writeAnnotations | back to summary |
|---|---|
| pack-priv void writeAnnotations(SymbolToken[] annotations) throws IOException | |
| writeAnnotationToken | back to summary |
|---|---|
| pack-priv void writeAnnotationToken(SymbolToken ann) throws IOException | |
| writeBlob | back to summary |
|---|---|
| public void writeBlob(byte[] value, int start, int len) throws IOException Implements com. Doc from com. Writes a portion of the byte array out as an IonBlob value. This copies the portion of the byte array that is written.
| |
| writeBool | back to summary |
|---|---|
| public void writeBool(boolean value) throws IOException Implements com. Doc from com. writes a non-null boolean value (true or false) as an IonBool to output.
| |
| writeClob | back to summary |
|---|---|
| public void writeClob(byte[] value, int start, int len) throws IOException Implements com. Doc from com. Writes a portion of the byte array out as an IonClob value. This copies the porition of the byte array that is written.
| |
| writeDecimal | back to summary |
|---|---|
| public void writeDecimal(BigDecimal value) throws IOException Implements abstract com. Implements com. Doc from com. Writes a BigDecimal value as an Ion decimal. Ion uses an arbitrarily long sign/value and an arbitrarily long signed exponent to write the value. This preserves all of the BigDecimal digits, the number of significant digits.
To write a negative zero value, pass this method a
| |
| writeFieldNameToken | back to summary |
|---|---|
| pack-priv void writeFieldNameToken(SymbolToken sym) throws IOException | |
| writeFloat | back to summary |
|---|---|
| public void writeFloat(double value) throws IOException Implements com. Doc from com. writes a 64 bit binary floating point value, a Java double, as an IonFloat. Currently IonFloat values are output as 64 bit IEEE 754 big endian values. IonFloat preserves all valid floating point values, including -0.0, Nan and +/-infinity. It does not guarantee preservation of -Nan or other less less "common" values.
| |
| writeInt | back to summary |
|---|---|
| public void writeInt(long value) throws IOException Implements com. Doc from com. writes a signed 64 bit value, a Java long, as an IonInt.
| |
| writeInt | back to summary |
|---|---|
| public void writeInt(BigInteger value) throws IOException Implements com. Doc from com. writes a BigInteger value as an IonInt. If the BigInteger value is null this writes a null int.
| |
| writeIonVersionMarkerAsIs | back to summary |
|---|---|
| pack-priv void writeIonVersionMarkerAsIs(SymbolTable systemSymtab) throws IOException Implements abstract com. Doc from com. Writes an IVM without checking preconditions or
| |
| writeLocalSymtab | back to summary |
|---|---|
| pack-priv void writeLocalSymtab(SymbolTable symtab) throws IOException Overrides com.
| |
| writeNull | back to summary |
|---|---|
| public void writeNull() throws IOException Overrides com. Implements com. Doc from com. Writes a value of Ion's null type (
| |
| writeNull | back to summary |
|---|---|
| public void writeNull(IonType type) throws IOException Implements com. Doc from com. Writes a null value of a specified Ion type.
| |
| writeSeparator | back to summary |
|---|---|
| pack-priv boolean writeSeparator(boolean followingLongString) throws IOException | |
| writeSidLiteral | back to summary |
|---|---|
| private void writeSidLiteral(int sid) throws IOException | |
| writeString | back to summary |
|---|---|
| public void writeString(String value) throws IOException Implements com. Doc from com. Writes a
| |
| writeSymbolAsIs | back to summary |
|---|---|
| pack-priv void writeSymbolAsIs(int symbolId) throws IOException Implements abstract com. Doc from com. Writes a symbol without checking for system ID.
| |
| writeSymbolAsIs | back to summary |
|---|---|
| public void writeSymbolAsIs(String value) throws IOException Implements abstract com. Doc from com. Writes a symbol without checking for system ID.
| |
| writeSymbolToken | back to summary |
|---|---|
private void writeSymbolToken(String value) throws IOException
| |
| writeTimestamp | back to summary |
|---|---|
| public void writeTimestamp(Timestamp value) throws IOException Implements com. Doc from com. Writes a timestamp value.
| |