| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final IonCatalog | _catalog
Not null. |
| private final IonLoader | |
| private final SymbolTable | |
| private final _Private_IonBinaryWriterBuilder | myBinaryWriterBuilder
Immutable. |
| private final IonReaderBuilder | myReaderBuilder
Immutable. |
| private final IonTextWriterBuilder | myTextWriterBuilder
Immutable. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <T extends IonValue> T | clone(T
the value to copy. value)Implements com. Creates a deep copy of an Ion value. |
| public IonCatalog | |
| public IonLoader | |
| pack-priv IonReaderBuilder | |
| public final SymbolTable | getSystemSymbolTable()
Implements com. Gets the default system symbol table. |
| public SymbolTable | getSystemSymbolTable(String
must be of the form ionVersionId)"$ion_X_Y".Implements com. Gets a system symbol table for a specific version of Ion. |
| public boolean | isStreamCopyOptimized()
Implements com. Indicates whether writers built by this system may attempt to optimize
|
| public Iterator | iterate(Reader
a stream of Ion text data. The caller is responsible for
closing the Reader after iteration is complete. ionText)Implements com. Creates an iterator over a stream of Ion text data. |
| public Iterator | iterate(InputStream
a stream of Ion data. The caller is responsible for
closing the InputStream after iteration is complete. ionData)Implements com. Warning Will cause a memory leak when reading a gzipped stream, use
|
| public Iterator | iterate(String
must not be null. ionText)Implements com. Creates an iterator over a string containing Ion text data. |
| public Iterator | iterate(byte[]
may be either Ion binary data or (UTF-8) Ion text, or
GZIPped Ion data.
This method assumes ownership of the array and may modify it at
will. ionData)Implements com. Warning Will cause a memory leak when reading a gzipped byte[], use
|
| public Iterator | iterate(IonReader
source of the Ion data to iterate over. reader)Implements com. Creates an iterator over Ion data. |
| private IonValueLite | |
| public IonBinaryWriter | newBinaryWriter()
Implements com.
Deprecated
Creates a new writer that will encode binary Ion data. |
| public IonBinaryWriter | newBinaryWriter(SymbolTable...
a sequence of shared symbol tables imports)Implements com.
Deprecated
Creates a new writer that will encode binary Ion data, using the given shared symbol tables as imports. |
| public IonWriter | newBinaryWriter(OutputStream
the stream to receive binary Ion data; not null. out, SymbolTable... a sequence of shared symbol tables to import.
The first (and only the first) may be a system table. imports)Implements com. Creates a new writer that will encode binary Ion data, using the given shared symbol tables as imports. |
| public IonTimestamp | newCurrentUtcTimestamp()
Implements com. Constructs a new UTC |
| public IonDatagram | |
| public IonDatagramLite | |
| public IonDatagram | newDatagram(IonValue
becomes the first and only (user) value in the
datagram. The child's initialChild)system
must be this system.
If null, then the returned datagram will have no
user values.Implements com. Creates a new datagram containing one value. |
| public IonDatagram | |
| public IonDatagram | newDatagram(SymbolTable...
the set of shared symbol tables to import.
The first (and only the first) may be a system table. imports)Implements com. Creates a new datagram, bootstrapped with imported symbol tables. |
| public IonDatagram | |
| public IonLoader | newLoader()
Implements com. Constructs a new loader instance using the default system catalog. |
| public IonLoader | newLoader(IonCatalog
may be null, in which case the loader will use the
default system catalog. catalog)Implements com. Constructs a new loader instance using the given catalog. |
| public SymbolTable | newLocalSymbolTable(SymbolTable...
the set of shared symbol tables to import.
The first (and only the first) may be a system table. imports)Implements com. Creates a new local symbol table based on specific imported tables. |
| public IonReader | newReader(byte[]
may be either Ion binary data, or UTF-8 Ion text.
The reader retains a reference to the array, so its data must not be
modified while the reader is active. ionData)Implements com. Creates an new |
| public IonReader | newReader(byte[]
is used only within the range of bytes starting at
ionData, int offset for len bytes.
The data in that range may be either Ion binary data, or UTF-8 Ion text.
The reader retains a reference to the array, so its data must not be
modified while the reader is active.must be non-negative and less than offset, int ionData.length.must be non-negative and len)offset+len must not exceed
ionData.length.Implements com. Creates an new |
| public IonTextReader | newReader(String
must not be null. ionText)Implements com.
References Deprecated
IonTextReader is deprecated or references (maybe indirectly) at least one deprecated element.
Creates an new |
| public IonReader | newReader(InputStream
must not be null. ionData)Implements com. Creates a new |
| public IonReader | newReader(Reader ionText)
Implements com. Creates an new |
| public IonReader | newReader(IonValue
must not be null. value)Implements com. Creates an new |
| public SymbolTable | |
| public SymbolTable | newSharedSymbolTable(IonReader
must not be null. reader)Implements com. Materializes a shared symbol table from its serialized form. |
| public SymbolTable | newSharedSymbolTable(IonReader
must not be null. reader, boolean is true if the caller has aleady next-ed onto the struct, false if a next call is needed isOnStruct)Implements com. Materializes a shared symbol table from its serialized form. |
| public SymbolTable | newSharedSymbolTable(String
the symbol table name, a non-empty string. name, int at least one. version, Iterator<String> provides symbol names; may be null. newSymbols, SymbolTable... other tables from which to import symbols. imports)Implements com. Creates a new shared symbol table containing a given set of symbols. |
| protected IonSymbolLite | |
| public IonReader | |
| public IonReader | newSystemReader(byte[] ionData, int offset, int len)
Implements com.
|
| public IonReader | |
| public IonReader | newSystemReader(InputStream ionData)
Implements com.
|
| public IonReader | |
| public IonReader | |
| public IonWriter | newTextWriter(Appendable
the stream that will receive Ion text data.
Must not be null. out)Implements com. Creates a new writer that will write text to the given output stream. |
| public IonWriter | newTextWriter(Appendable
the stream that will receive Ion text data.
Must not be null. out, SymbolTable... a sequence of shared symbol tables.
The first (and only the first) may be a system table. imports)Implements com. Creates a new writer that will write text to the given output stream, using the given shared symbol tables as imports. |
| public IonWriter | newTextWriter(OutputStream
the stream that will receive UTF-8 Ion text data.
Must not be null. out)Implements com. Creates a new writer that will write UTF-8 text to the given output stream. |
| public IonWriter | newTextWriter(OutputStream
the stream that will receive UTF-8 Ion text data.
Must not be null. out, SymbolTable... a sequence of shared symbol tables imports)Implements com. Creates a new writer that will write UTF-8 text to the given output stream, using the given shared symbol tables as imports. |
| public IonWriter | newTreeSystemWriter(IonContainer
must not be null. container)Implements com.
|
| public IonWriter | newTreeWriter(IonContainer
must not be null. container)Implements com.
|
| public IonTimestamp | newUtcTimestamp(Date
the time of the new instance;
may be utcDate)null to make null.timestamp.Implements com. Constructs a new UTC |
| public IonTimestamp | newUtcTimestampFromMillis(long
the milliseconds since 1970-01-01T00:00:00Z. millis)Implements com. Constructs a new UTC |
| public IonValueLite | newValue(IonReader reader)
Implements com. Extracts the current value from a reader into an |
| pack-priv IonValueLite | |
| public IonWriter | newWriter(IonContainer
a container that will receive new children from the
the returned writer.
Must not be null. container)Implements com. Creates a new writer that will add |
| private IonValue | |
| public IonValue | singleValue(String
must not be null. ionText)Implements com. Extracts a single value from Ion text data. |
| public IonValue | singleValue(byte[]
may be either Ion binary data or (UTF-8) Ion text, or
GZIPped Ion data.
This method assumes ownership of the array and may modify it at
will. ionData)Implements com. Extracts a single value from Ion text or binary data. |
| public IonValue | singleValue(byte[]
is used only within the range of bytes starting at
ionData, int offset for len bytes.
The data in that range may be either Ion binary data, or UTF-8 Ion text.must be non-negative and less than offset, int ionData.length.must be non-negative and len)offset+len must not exceedImplements com. Extracts a single value from Ion text or binary data. |
| public Iterator | systemIterate(Reader ionText)
Implements com. TODO Must correct amazon-ion/ion-java/issues/63 before exposing this or using from public API. |
| public Iterator | systemIterate(String ionText)
Implements com. TODO Must correct amazon-ion/ion-java/issues/63 before exposing this or using from public API. |
| public Iterator | |
| public boolean |