| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final Queue | |
| private final IonReaderContinuableCore | |
| private IonType | |
| private IonType |
| Access | Constructor and Description |
|---|---|
| pack-priv | IonReaderNonContinuableSystem(IonReaderContinuableCore
the reader to wrap. reader)Constructs a new non-continuable system-level reader over the given continuable reader. |
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | asFacet(Class<T>
The type token of the requested facet type. facetType)Implements com. Returns a facet of this subject if supported. |
| public BigDecimal | bigDecimalValue()
Implements com. Returns the current value as a |
| public BigInteger | bigIntegerValue()
Implements com. Returns the current value as a |
| public boolean | booleanValue()
Implements com. Returns the current value as an boolean. |
| public int | byteSize()
Implements com. Gets the size in bytes of the current lob value. |
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| public Date | dateValue()
Implements com. Returns the current value as a |
| public Decimal | decimalValue()
Implements com. Returns the current value as a |
| public double | doubleValue()
Implements com. Returns the current value as a double. |
| public int | getBytes(byte[]
destination to copy the value into, this must not be null. buffer, int the first position to copy into, this must be non null and
less than the length of buffer. offset, int the number of bytes available in the buffer to copy into,
this must be long enough to hold the whole value and not extend outside
of buffer. len)Implements com. Copies the current value into the passed in a byte array. |
| public int | getDepth()
Implements com. Returns the depth into the Ion value that this reader has traversed. |
| public int | getFieldId()
Implements com. /** Gets the symbol ID of the field name attached to the current value. |
| public String | getFieldName()
Implements com. Return the field name of the current value. |
| public SymbolToken | getFieldNameSymbol()
Implements com. Gets the current value's field name as a symbol token (text + ID). |
| public IntegerSize | getIntegerSize()
Implements com. Returns an |
| public SymbolTable | getSymbolTable()
Implements com. Returns the symbol table that is applicable to the current value. |
| public IonType | getType()
Implements com. Returns the type of the current value, or null if there is no current value. |
| public String[] | getTypeAnnotations()
Implements com. Return the annotations of the current value as an array of strings. |
| public SymbolToken[] | getTypeAnnotationSymbols()
Implements com. Gets the current value's annotations as symbol tokens (text + ID). |
| private boolean | Returns: true if a value is ready to be presented to the user; otherwise, false.Consumes an IVM that was encountered before the next value, presenting the IVM as a symbol value. |
| public boolean | hasNext()
Implements com. Determines whether there is another value at the current depth;
in other words whether there is a sibling value that may be reached
using |
| public int | |
| public boolean | isInStruct()
Implements com. Determines whether this reader is currently traversing the fields of an Ion struct. |
| public boolean | isNullValue()
Implements com. Determines whether the current value is a null Ion value of any type
(for example, |
| public Iterator | iterateTypeAnnotations()
Implements com. Return the annotations on the curent value as an iterator. |
| public long | |
| public byte[] | newBytes()
Implements com. Returns the current value as a newly-allocated byte array. |
| public IonType | next()
Implements com. Positions this reader on the next sibling after the current value, returning the type of that value. |
| private void | |
| public void | stepIn()
Implements com. Positions the reader just before the contents of the current value, which must be a container (list, sexp, or struct). |
| public void | stepOut()
Implements com. Positions the iterator after the current parent's value, moving up one level in the data hierarchy. |
| public String | stringValue()
Implements com. Returns the current value as a Java String. |
| public SymbolToken | symbolValue()
Implements com. Returns the current value as a symbol token (text + ID). |
| public Timestamp | timestampValue()
Implements com. Returns the current value as a |
| pendingIvmSid | back to summary |
|---|---|
| private int pendingIvmSid | |
| pendingIvmSids | back to summary |
|---|---|
| private final Queue<Integer> pendingIvmSids | |
| reader | back to summary |
|---|---|
| private final IonReaderContinuableCore reader | |
| type | back to summary |
|---|---|
| private IonType type | |
| typeAfterIvm | back to summary |
|---|---|
| private IonType typeAfterIvm | |
| IonReaderNonContinuableSystem | back to summary |
|---|---|
| pack-priv IonReaderNonContinuableSystem(IonReaderContinuableCore reader) Constructs a new non-continuable system-level reader over the given continuable reader.
| |
| asFacet | back to summary |
|---|---|
| public <T> T asFacet(Class<T> facetType) Implements com. Doc from com. Returns a facet of this subject if supported. | |
| bigDecimalValue | back to summary |
|---|---|
| public BigDecimal bigDecimalValue() Implements com. Doc from com. Returns the current value as a
This method is only valid when
| |
| bigIntegerValue | back to summary |
|---|---|
| public BigInteger bigIntegerValue() Implements com. Doc from com. Returns the current value as a
| |
| booleanValue | back to summary |
|---|---|
| public boolean booleanValue() Implements com. Doc from com. Returns the current value as an boolean.
This is only valid when
| |
| byteSize | back to summary |
|---|---|
| public int byteSize() Implements com. Doc from com. Gets the size in bytes of the current lob value.
This is only valid when
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| dateValue | back to summary |
|---|---|
| public Date dateValue() Implements com. Doc from com. Returns the current value as a | |
| decimalValue | back to summary |
|---|---|
| public Decimal decimalValue() Implements com. Doc from com. Returns the current value as a | |
| doubleValue | back to summary |
|---|---|
| public double doubleValue() Implements com. Doc from com. Returns the current value as a double. This is only valid if there is an underlying value and the value is either float, or decimal.
| |
| getBytes | back to summary |
|---|---|
| public int getBytes(byte[] buffer, int offset, int len) Implements com. Doc from com. Copies the current value into the passed in a byte array.
This is only valid when
| |
| getDepth | back to summary |
|---|---|
| public int getDepth() Implements com. Doc from com. Returns the depth into the Ion value that this reader has traversed.
At top level the depth is 0, and it increases by one on each call to
| |
| getFieldId | back to summary |
|---|---|
| public int getFieldId() Implements com. Doc from com. /** Gets the symbol ID of the field name attached to the current value. This is an "expert method": correct use requires deep understanding of the Ion binary format. You almost certainly don't want to use it.
| |
| getFieldName | back to summary |
|---|---|
| public String getFieldName() Implements com. Doc from com. Return the field name of the current value. Or null if there is no valid current value or if the current value is not a field of a struct.
| |
| getFieldNameSymbol | back to summary |
|---|---|
| public SymbolToken getFieldNameSymbol() Implements com. Doc from com. Gets the current value's field name as a symbol token (text + ID).
If the text of the token isn't known, the result's
| |
| getIntegerSize | back to summary |
|---|---|
| public IntegerSize getIntegerSize() Implements com. Doc from com. Returns an
| |
| getSymbolTable | back to summary |
|---|---|
| public SymbolTable getSymbolTable() Implements com. Doc from com. Returns the symbol table that is applicable to the current value. This may be either a system or local symbol table.
| |
| getType | back to summary |
|---|---|
| public IonType getType() Implements com. Doc from com. Returns the type of the current value, or null if there is no current value.
| |
| getTypeAnnotations | back to summary |
|---|---|
| public String[] getTypeAnnotations() Implements com. Doc from com. Return the annotations of the current value as an array of strings. | |
| getTypeAnnotationSymbols | back to summary |
|---|---|
| public SymbolToken[] getTypeAnnotationSymbols() Implements com. Doc from com. Gets the current value's annotations as symbol tokens (text + ID).
| |
| handleIvm | back to summary |
|---|---|
| private boolean handleIvm() Consumes an IVM that was encountered before the next value, presenting the IVM as a symbol value. If an IVM was emitted on the last invocation, restores the next value to be presented to the user.
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements com. Doc from com. Determines whether there is another value at the current depth;
in other words whether there is a sibling value that may be reached
using Warning this method alters the internal state of the reader such
that you cannot reliably get values from the "current" element. The only
thing you should call after
| |
| intValue | back to summary |
|---|---|
| public int intValue() Implements com. Doc from com. Returns the current value as an int. This is only valid if there is an underlying value and the value is of a numeric type (int, float, or decimal).
| |
| isInStruct | back to summary |
|---|---|
| public boolean isInStruct() Implements com. Doc from com. Determines whether this reader is currently traversing the fields of an Ion struct. It returns false if the iteration is in a list, a sexp, or a datagram.
| |
| isNullValue | back to summary |
|---|---|
| public boolean isNullValue() Implements com. Doc from com. Determines whether the current value is a null Ion value of any type
(for example,
| |
| iterateTypeAnnotations | back to summary |
|---|---|
| public Iterator Implements com. Doc from com. Return the annotations on the curent value as an iterator. The iterator is empty (hasNext() returns false on the first call) if there are no annotations on the current value.
Implementations *may* throw Note the iterator returned by this method is only valid while
the reader remains positioned on the current value (i.e., before
next, step in, or step out). Use cases that require storing a
value's annotations after advancing past that value should either
copy them from the iterator or call | |
| longValue | back to summary |
|---|---|
| public long longValue() Implements com. Doc from com. Returns the current value as a long. This is only valid if there is an underlying value and the value is of a numeric type (int, float, or decimal).
| |
| newBytes | back to summary |
|---|---|
| public byte[] newBytes() Implements com. Doc from com. Returns the current value as a newly-allocated byte array.
This is only valid when
| |
| next | back to summary |
|---|---|
| public IonType next() Implements com. Doc from com. Positions this reader on the next sibling after the current value,
returning the type of that value. Once so positioned the contents of
this value can be accessed with the
A sequence of
| |
| prepareScalar | back to summary |
|---|---|
| private void prepareScalar() Prepares a scalar value to be parsed by ensuring it is present in the buffer. | |
| stepIn | back to summary |
|---|---|
| public void stepIn() Implements com. Doc from com. Positions the reader just before the contents of the current value,
which must be a container (list, sexp, or struct).
There's no current value immediately after stepping in, so the next
thing you'll want to do is call
Stepping into a null container (
At any time
| |
| stepOut | back to summary |
|---|---|
| public void stepOut() Implements com. Doc from com. Positions the iterator after the current parent's value, moving up one
level in the data hierarchy.
There's no current value immediately after stepping out, so the next
thing you'll want to do is call
| |
| stringValue | back to summary |
|---|---|
| public String stringValue() Implements com. Doc from com. Returns the current value as a Java String.
This is only valid when
| |
| symbolValue | back to summary |
|---|---|
| public SymbolToken symbolValue() Implements com. Doc from com. Returns the current value as a symbol token (text + ID).
This is only valid when
| |
| timestampValue | back to summary |
|---|---|
| public Timestamp timestampValue() Implements com. Doc from com. Returns the current value as a | |