Package com.amazon.ion.impl
Class _Private_IonReaderBuilder
java.lang.Object
com.amazon.ion.system.IonReaderBuilder
com.amazon.ion.impl._Private_IonReaderBuilder
- Direct Known Subclasses:
_Private_IonReaderBuilder.Mutable
IonReaderBuilder extension for internal use only.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuild(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.build(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.Based on the builder's configuration properties, creates a newIonReaderinstance over Ion text data.Based on the builder's configuration properties, creates an newIonReaderinstance over Ion text data.voidDeclares the_Private_LocalSymbolTableFactoryto use when constructing applicable readers.Methods inherited from class com.amazon.ion.system.IonReaderBuilder
build, copy, getBufferConfiguration, getCatalog, immutable, isIncrementalReadingEnabled, mutable, mutationCheck, setBufferConfiguration, setCatalog, setIncrementalReadingDisabled, setIncrementalReadingEnabled, standard, validateCatalog, withBufferConfiguration, withCatalog, withIncrementalReadingEnabled
-
Method Details
-
withLstFactory
Declares the_Private_LocalSymbolTableFactoryto use when constructing applicable readers.- Parameters:
factory- the factory to use, orLocalSymbolTable.DEFAULT_LST_FACTORYif null.- Returns:
- this builder instance, if mutable; otherwise a mutable copy of this builder.
- See Also:
-
setLstFactory
- See Also:
-
build
Description copied from class:IonReaderBuilderBased 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.
- Specified by:
buildin classIonReaderBuilder- Parameters:
ionData- the source of the Ion data, which is used only within the range of bytes starting atoffsetforlenbytes. 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 thanionData.length.length- must be non-negative andoffset+lengthmust not exceedionData.length.- See Also:
-
build
Description copied from class:IonReaderBuilderBased 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.
- Specified by:
buildin classIonReaderBuilder- Parameters:
source- the source of the Ion data, which may be either Ion binary data or UTF-8 Ion text. Must not be null.- Returns:
- a new reader instance.
Callers must call
Closeable.close()when finished with it. - See Also:
-
build
Description copied from class:IonReaderBuilderBased on the builder's configuration properties, creates a newIonReaderinstance 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.
- Specified by:
buildin classIonReaderBuilder- Parameters:
ionText- the source of the Ion text data. Must not be null.- See Also:
-
build
Description copied from class:IonReaderBuilderBased on the builder's configuration properties, creates a newIonReaderinstance over anIonValuedata model. Typically this is used to iterate over a collection, such as anIonStruct. 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.- Specified by:
buildin classIonReaderBuilder- Parameters:
value- must not be null.- See Also:
-
build
Description copied from class:IonReaderBuilderBased on the builder's configuration properties, creates an newIonReaderinstance over Ion text data.- Specified by:
buildin classIonReaderBuilder- Parameters:
ionText- the source of the Ion text data. Must not be null.- See Also:
-