public class _Private_IonReaderBuilder extends IonReaderBuilder
IonReaderBuilder extension for internal use only.| Modifier and Type | Class and Description |
|---|---|
static class |
_Private_IonReaderBuilder.Mutable |
| Modifier and Type | Method and Description |
|---|---|
IonReader |
build(byte[] ionData,
int offset,
int length)
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.
|
IonReader |
build(java.io.InputStream source)
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.
|
IonReader |
build(IonValue value)
|
IonReader |
build(java.io.Reader ionText)
Based on the builder's configuration properties, creates a new
IonReader instance over Ion text data. |
IonTextReader |
build(java.lang.String ionText)
Based on the builder's configuration properties, creates an new
IonReader instance over Ion text data. |
void |
setLstFactory(_Private_LocalSymbolTableFactory factory) |
IonReaderBuilder |
withLstFactory(_Private_LocalSymbolTableFactory factory)
Declares the
_Private_LocalSymbolTableFactory to use when constructing applicable readers. |
build, copy, getBufferConfiguration, getCatalog, immutable, isIncrementalReadingEnabled, mutable, mutationCheck, setBufferConfiguration, setCatalog, setIncrementalReadingDisabled, setIncrementalReadingEnabled, standard, validateCatalog, withBufferConfiguration, withCatalog, withIncrementalReadingEnabledpublic IonReaderBuilder withLstFactory(_Private_LocalSymbolTableFactory factory)
_Private_LocalSymbolTableFactory to use when constructing applicable readers.factory - the factory to use, or LocalSymbolTable.DEFAULT_LST_FACTORY if null.setLstFactory(_Private_LocalSymbolTableFactory)public void setLstFactory(_Private_LocalSymbolTableFactory factory)
public IonReader build(byte[] ionData, int offset, int length)
IonReaderBuilderThis method will auto-detect and uncompress GZIPped Ion data.
build in class IonReaderBuilderionData - the source of the Ion data, which is used only within the
range of bytes starting at 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.offset - must be non-negative and less than ionData.length.length - must be non-negative and offset+length must not
exceed ionData.length.IonSystem.newReader(byte[], int, int)public IonReader build(java.io.InputStream source)
IonReaderBuilderThis 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 in class IonReaderBuildersource - the source of the Ion data, which may be either Ion binary
data or UTF-8 Ion text. Must not be null.Closeable.close() when finished with it.IonSystem.newReader(InputStream)public IonReader build(java.io.Reader ionText)
IonReaderBuilderIonReader instance over Ion text data.
Applications should generally use IonReaderBuilder.build(InputStream)
whenever possible, since this library has much faster Unicode decoding
than the Java IO framework.
Because this library performs its own buffering, it's recommended that you avoid adding additional buffering to the given stream.
build in class IonReaderBuilderionText - the source of the Ion text data. Must not be null.IonSystem.newReader(Reader)public IonReader build(IonValue value)
IonReaderBuilderIonReader instance over an IonValue data model. Typically
this is used to iterate over a collection, such as an IonStruct.
The given value and its children, if any, must not be modified until after
the IonReader constructed by this method is closed. Violating this
constraint results in undefined behavior.build in class IonReaderBuildervalue - must not be null.IonSystem.newReader(IonValue)public IonTextReader build(java.lang.String ionText)
IonReaderBuilderIonReader instance over Ion text data.build in class IonReaderBuilderionText - the source of the Ion text data. Must not be null.IonSystem.newReader(String)