IonReader will parse one top-level value at a time, and is better
suited for streaming protocols or large inputs.Warning
This interface should not be implemented or extended by code outside of this library.
Implementations of this interface are safe for use by multiple threads.
IonReader
| Modifier and Type | Method and Description |
|---|---|
| public IonCatalog | |
| public IonSystem | |
| public IonDatagram | |
| public IonDatagram | |
| public IonDatagram | |
| public IonDatagram | Returns: a datagram containing all the values on the input stream; not null.may be either Ion binary data, or UTF-8 Ion text.
This method assumes ownership of the array and may modify it at
will. ionData)Loads a block of Ion data into a single datagram, detecting whether it's text or binary data. |
| public IonDatagram | Returns: a datagram containing all the values on the input stream; not null.the stream from which to read Ion data. ionData)
Deprecated
Will cause a memory leak when reading a gzipped stream.
Use
IonLoader#load(IonReader) instead.
Warning Will cause a memory leak when reading a gzipped stream, use
|
| public IonDatagram |
| getCatalog | back to summary |
|---|---|
| public IonCatalog getCatalog() Gets the
| |
| getSystem | back to summary |
|---|---|
| public IonSystem getSystem() Gets the
| |
| load | back to summary |
|---|---|
| public IonDatagram load(File ionFile) throws IonException, IOException Loads an entire file of Ion data into a single datagram, detecting whether it's text or binary data.
| |
| load | back to summary |
|---|---|
| public IonDatagram load(String ionText) throws IonException Loads Ion text in its entirety.
| |
| load | back to summary |
|---|---|
| public IonDatagram load(Reader ionText) throws IonException, IOException Loads a stream of Ion text into a single datagram. The specified reader remains open after this method returns. Because this library performs its own buffering, it's recommended that you avoid adding additional buffering to the given stream.
| |
| load | back to summary |
|---|---|
| public IonDatagram load(byte[] ionData) throws IonException Loads a block of Ion data into a single datagram, detecting whether it's text or binary data. This method will auto-detect and uncompress GZIPped Ion data.
| |
| load | back to summary |
|---|---|
| public IonDatagram load(InputStream ionData) throws IonException, IOException
Deprecated Will cause a memory leak when reading a gzipped stream.
Use Warning Will cause a memory leak when reading a gzipped stream, use
The specified stream remains open after this method returns. This method will auto-detect and uncompress GZIPped Ion data. Because this library performs its own buffering, it's recommended that you avoid adding additional buffering to the given stream.
| |
| load | back to summary |
|---|---|
| public IonDatagram load(IonReader reader) throws IonException Loads an entire stream of Ion data into a single datagram, detecting whether it's text or binary data. The specified reader remains open after this method returns.
| |