IonReaderBuilder extension for internal use only.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface | |
| pack-priv static interface | |
| pack-priv static interface | |
| pack-priv static interface | |
| public static class | |
| private static class | _Private_IonReaderBuilder.
InputStream that reads from exactly two delegate InputStreams in sequence. |
| Modifier and Type | Field and Description |
|---|---|
| private _Private_LocalSymbolTableFactory |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public IonReader | build(byte[]
the source of the Ion data, which 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 not be null.must be non-negative and less than offset, int ionData.length.must be non-negative and length)offset+length must not
exceed ionData.length.Implements abstract com. Based on the builder's configuration properties, creates a new IonReader instance over the given block of Ion data, detecting whether it's text or binary data. |
| public IonReader | build(InputStream
the source of the Ion data, which may be either Ion binary
data or UTF-8 Ion text. Must not be null. source)Implements abstract com. Based on the builder's configuration properties, creates a new IonReader instance over the given stream of Ion data, detecting whether it's text or binary data. |
| public IonReader | build(Reader
the source of the Ion text data. Must not be null. ionText)Implements abstract com. Based on the builder's configuration properties, creates a new
|
| public IonReader | build(IonValue
must not be null. value)Implements abstract com. Based on the builder's configuration properties, creates a new
|
| public IonTextReader | build(String
the source of the Ion text data. Must not be null. ionText)Implements abstract com.
References Deprecated
IonTextReader is deprecated or references (maybe indirectly) at least one deprecated element.
Based on the builder's configuration properties, creates an new
|
| pack-priv static IonReader | buildReader(_Private_IonReaderBuilder builder, byte[] ionData, int offset, int length, _Private_IonReaderBuilder.
|
| pack-priv static IonReader | buildReader(_Private_IonReaderBuilder builder, InputStream source, _Private_IonReaderBuilder.
|
| private static int | Returns: the number of bytes read into `destination`.the source of the bytes to read. source, byte[] the destination for the bytes read. destination, int the number of bytes to attempt to read. length)Reads from the given source into the given byte array, stopping once either
|
| public void | |
| private static boolean | Returns: true if the first 'length' bytes in 'buffer' match the first 'length' bytes in the binary IVM.up to the first four bytes in a stream. buffer, int the actual number of bytes in the buffer. length)Determines whether a stream that begins with the bytes in the provided buffer could be binary Ion. |
| private static void | |
| public IonReaderBuilder | Returns: this builder instance, if mutable; otherwise a mutable copy of this builder.the factory to use, or factory)LocalSymbolTable#DEFAULT_LST_FACTORY if null.Declares the |
| lstFactory | back to summary |
|---|---|
| private _Private_LocalSymbolTableFactory lstFactory | |
| _Private_IonReaderBuilder | back to summary |
|---|---|
| private _Private_IonReaderBuilder() | |
| _Private_IonReaderBuilder | back to summary |
|---|---|
| private _Private_IonReaderBuilder(_Private_IonReaderBuilder that) | |
| build | back to summary |
|---|---|
| public IonReader build(byte[] ionData, int offset, int length) Implements abstract com. Doc from com. Based on the builder's configuration properties, creates a new IonReader instance over the given block of Ion data, detecting whether it's text or binary data. This method will auto-detect and uncompress GZIPped Ion data.
| |
| build | back to summary |
|---|---|
| public IonReader build(InputStream source) Implements abstract com. Doc from com. Based on the builder's configuration properties, creates a new IonReader instance over the given stream of Ion data, detecting whether it's text or binary data. This method will auto-detect and uncompress GZIPped Ion data. Because this library performs its own buffering, it's recommended that users avoid adding additional buffering to the given stream.
| |
| build | back to summary |
|---|---|
| public IonReader build(Reader ionText) Implements abstract com. Doc from com. Based on the builder's configuration properties, creates a new
Applications should generally use Because this library performs its own buffering, it's recommended that you avoid adding additional buffering to the given stream. | |
| build | back to summary |
|---|---|
| public IonReader build(IonValue value) Implements abstract com. Doc from com. Based on the builder's configuration properties, creates a new
| |
| build | back to summary |
|---|---|
| public IonTextReader build(String ionText) Implements abstract com. Doc from com. References Deprecated
See corresponding docs for further information. Based on the builder's configuration properties, creates an new
| |
| buildReader | back to summary |
|---|---|
| pack-priv static IonReader buildReader(_Private_IonReaderBuilder builder, byte[] ionData, int offset, int length, _Private_IonReaderBuilder. | |
| buildReader | back to summary |
|---|---|
| pack-priv static IonReader buildReader(_Private_IonReaderBuilder builder, InputStream source, _Private_IonReaderBuilder. | |
| fillToLengthOrStreamEnd | back to summary |
|---|---|
| private static int fillToLengthOrStreamEnd(InputStream source, byte[] destination, int length) Reads from the given source into the given byte array, stopping once either
| |
| setLstFactory | back to summary |
|---|---|
| public void setLstFactory(_Private_LocalSymbolTableFactory factory) | |
| startsWithIvm | back to summary |
|---|---|
| private static boolean startsWithIvm(byte[] buffer, int length) Determines whether a stream that begins with the bytes in the provided buffer could be binary Ion.
| |
| validateHeaderLength | back to summary |
|---|---|
| private static void validateHeaderLength(int maxHeaderLength) | |
| withLstFactory | back to summary |
|---|---|
| public IonReaderBuilder withLstFactory(_Private_LocalSymbolTableFactory factory) Declares the
| |
| Modifier and Type | Method and Description |
|---|---|
| public IonReader |
| makeReader | back to summary |
|---|---|
| public IonReader makeReader(_Private_IonReaderBuilder builder, byte[] ionData, int offset, int length) | |
| Modifier and Type | Method and Description |
|---|---|
| public IonReader | makeReader(IonCatalog catalog, byte[] ionData, int offset, int length, _Private_LocalSymbolTableFactory lstFactory)
|
| makeReader | back to summary |
|---|---|
| public IonReader makeReader(IonCatalog catalog, byte[] ionData, int offset, int length, _Private_LocalSymbolTableFactory lstFactory) | |
| Modifier and Type | Method and Description |
|---|---|
| public IonReader | makeReader(_Private_IonReaderBuilder builder, InputStream source, byte[] alreadyRead, int alreadyReadOff, int alreadyReadLen)
|
| makeReader | back to summary |
|---|---|
| public IonReader makeReader(_Private_IonReaderBuilder builder, InputStream source, byte[] alreadyRead, int alreadyReadOff, int alreadyReadLen) | |
| Modifier and Type | Method and Description |
|---|---|
| public IonReader |
| makeReader | back to summary |
|---|---|
| public IonReader makeReader(IonCatalog catalog, InputStream source, _Private_LocalSymbolTableFactory lstFactory) | |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public IonReaderBuilder | immutable()
Overrides com. Returns an immutable builder configured exactly like this one. |
| public IonReaderBuilder | mutable()
Overrides com. Returns a mutable builder configured exactly like this one. |
| protected void | mutationCheck()
Overrides com. NOT FOR APPLICATION USE! |
| Mutable | back to summary |
|---|---|
| public Mutable() | |
| Mutable | back to summary |
|---|---|
| public Mutable(IonReaderBuilder that) | |
| immutable | back to summary |
|---|---|
| public IonReaderBuilder immutable() Overrides com. Doc from com. Returns an immutable builder configured exactly like this one.
| |
| mutable | back to summary |
|---|---|
| public IonReaderBuilder mutable() Overrides com. Doc from com. Returns a mutable builder configured exactly like this one.
| |
| mutationCheck | back to summary |
|---|---|
| protected void mutationCheck() Overrides com. Doc from com. NOT FOR APPLICATION USE!
| |
| Modifier and Type | Field and Description |
|---|---|
| private final InputStream | first
The first InputStream in the sequence. |
| private InputStream | in
The current InputStream. |
| private final InputStream | last
The last InputStream in the sequence. |
| Access | Constructor and Description |
|---|---|
| private | TwoElementInputStream(final InputStream
first InputStream in the sequence. first, final InputStream last InputStream in the sequence. last)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Overrides java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected. |
| public void | close()
Overrides java. Implements java. Closes this input stream and releases any system resources associated with the stream. |
| public int | read()
Implements abstract java. Reads the next byte of data from the input stream. |
| public int | read(final byte[]
the buffer into which the data is read. b, final int the start offset in array off, final int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. Reads up to |
| first | back to summary |
|---|---|
| private final InputStream first The first InputStream in the sequence. | |
| in | back to summary |
|---|---|
| private InputStream in The current InputStream. | |
| last | back to summary |
|---|---|
| private final InputStream last The last InputStream in the sequence. | |
| TwoElementInputStream | back to summary |
|---|---|
| private TwoElementInputStream(final InputStream first, final InputStream last) Constructor.
| |
| available | back to summary |
|---|---|
| public int available() throws IOException Overrides java. Doc from java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected. The read might be on the same thread or another thread. A single read or skip of this many bytes will not block, but may read or skip fewer bytes. Note that while some implementations of A subclass's implementation of this method may choose to throw an
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public int read(final byte[] b, final int off, final int len) throws IOException Overrides java. Doc from java. Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If The first byte read is stored into element In every case, elements
| |