IonWriter implementations.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final _Private_SymtabExtendsCache | symtabExtendsCache
The cache for copy optimization checks--null if not copy optimized. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | asFacet(Class<T>
The type token of the requested facet type. facetType)Implements com. Returns a facet of this subject if supported. |
| public final boolean | isStreamCopyOptimized()
Implements com. Indicates whether the writer is stream copy optimized through |
| public abstract 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)Writes a portion of the byte array out as an IonString value. |
| public final void | writeTimestampUTC(final Date
java.util Date holding the UTC timestamp;
may be null to represent value)null.timestamp.Implements com. writes the passed in Date (in milliseconds since the epoch) as an IonTimestamp. |
| public final void | writeValue(final IonValue
may be null, in which case this method does nothing. value)Implements com. writes the contents of the passed in Ion value to the output. |
| public final void | writeValue(final IonReader reader)
Implements com. Writes the current value from a reader. |
| public final void | writeValueRecursive(final IonReader
The IonReader that will provide a value to write. reader)Performs a depth-first (recursive-like) traversal of the IonReader's current value, writing all values and annotations encountered during the traversal. |
| public final void | writeValues(final IonReader reader)
Implements com. Writes a reader's current value, and all following values until the end of the current container. |
| symtabExtendsCache | back to summary |
|---|---|
| private final _Private_SymtabExtendsCache symtabExtendsCache The cache for copy optimization checks--null if not copy optimized. | |
| AbstractIonWriter | back to summary |
|---|---|
| pack-priv AbstractIonWriter(final AbstractIonWriter. | |
| asFacet | back to summary |
|---|---|
| public <T> T asFacet(Class<T> facetType) Implements com. Doc from com. Returns a facet of this subject if supported.
| |
| isStreamCopyOptimized | back to summary |
|---|---|
| public final boolean isStreamCopyOptimized() Implements com. Doc from com. Indicates whether the writer is stream copy optimized through | |
| writeString | back to summary |
|---|---|
| public abstract void writeString(byte[] data, int offset, int length) throws IOException Writes a portion of the byte array out as an IonString value. This copies the portion of the byte array that is written.
| |
| writeTimestampUTC | back to summary |
|---|---|
| public final void writeTimestampUTC(final Date value) throws IOException Implements com. Doc from com. writes the passed in Date (in milliseconds since the epoch) as an IonTimestamp. The Date value is treated as a UTC value with an unknown timezone offset (a z value).
| |
| writeValue | back to summary |
|---|---|
| public final void writeValue(final IonValue value) throws IOException Implements com. Doc from com. writes the contents of the passed in Ion value to the output. This method also writes annotations and field names (if in a struct), and performs a deep write, including the contents of any containers encountered.
| |
| writeValue | back to summary |
|---|---|
| public final void writeValue(final IonReader reader) throws IOException Implements com. Doc from com. Writes the current value from a reader. This method also writes annotations and field names (if in a struct), and performs a deep write, including the contents of any containers encountered. | |
| writeValueRecursive | back to summary |
|---|---|
| public final void writeValueRecursive(final IonReader reader) throws IOException Performs a depth-first (recursive-like) traversal of the IonReader's current value, writing all values and annotations encountered during the traversal. This method is not implemented using recursion.
| |
| writeValues | back to summary |
|---|---|
| public final void writeValues(final IonReader reader) throws IOException Implements com. Doc from com. Writes a reader's current value, and all following values until the end
of the current container. If there's no current value then this method
calls
This method iterates until This method also writes annotations and field names (if in a struct), and performs a deep write, including the contents of any containers encountered. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final AbstractIonWriter. | |
| public static final AbstractIonWriter. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static AbstractIonWriter. | |
| public static AbstractIonWriter. |
| COPY_OPTIMIZED | back to summary |
|---|---|
| public static final AbstractIonWriter. | |
| NONE | back to summary |
|---|---|
| public static final AbstractIonWriter. | |
| WriteValueOptimization | back to summary |
|---|---|
| private WriteValueOptimization() | |
| valueOf | back to summary |
|---|---|
| public static AbstractIonWriter. | |
| values | back to summary |
|---|---|
| public static AbstractIonWriter. | |