| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private final IntList | |
| private static final int | |
| private static final int | |
| private static final int | |
| private int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| pack-priv long | |
| private final _Private_ScalarConversions. | |
| private final byte[][] | |
| private static final int | |
| pack-priv final Utf8StringDecoder | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | IonReaderContinuableCoreBinary(IonBufferConfiguration
the configuration to use. The buffer size and oversized value configuration are unused, as
the given buffer is used directly. configuration, byte[] the byte array containing the bytes to read. bytes, int the offset into the byte array at which the first byte of Ion data begins. offset, int the number of bytes to be read from the byte array. length)Constructs a new reader from the given byte array. |
| pack-priv | IonReaderContinuableCoreBinary(IonBufferConfiguration
the configuration to use. configuration, InputStream inputStream, byte[] the byte array containing the bytes already read (often the IVM). alreadyRead, int the offset into `alreadyRead` at which the first byte that was already read exists. alreadyReadOff, int the number of bytes already read from `alreadyRead`. alreadyReadLen)Constructs a new reader from the given input stream. |
| Modifier and Type | Method and Description |
|---|---|
| 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. |
| private boolean | Returns: true if the value fits in the Java integer type that matches its Ion serialized size; false if it requires the next larger size.Determines whether the integer starting at `valueMarker.startIndex` and ending at `valueMarker.endIndex` crosses a type boundary. |
| public void | close()
Overrides com. Implements java. Closes this stream and releases any system resources associated with it. |
| private byte[] | Returns: the scratch byte array.the start index from which to copy. startIndex, int the number of bytes to copy. length)Copy the requested number of bytes from the buffer into a scratch buffer of exactly the requested length. |
| 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. |
| private int | Returns: -1 if the most significant bit was set; otherwise, 1.bytes representing a signed int. intBytes)Get and clear the most significant bit in the given byte array. |
| public int[] | getAnnotationIds()
Implements com. Gets the symbol IDs of the annotations attached to the current value. |
| pack-priv IntList | Returns: the annotation symbol IDs, or an empty list if the current value is not annotated.Gets the annotation symbol IDs for the current value, reading them from the buffer first if necessary. |
| public int | getBytes(byte[]
destination to copy the value into, this must not be null. bytes, 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 IntegerSize | getIntegerSize()
Implements com. Returns an |
| public IonType | getType()
Implements com. Returns the type of the current value, or null if there is no current value. |
| public int | intValue()
Implements com. Returns the current value as an 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 long | longValue()
Implements com. Returns the current value as a long. |
| public byte[] | newBytes()
Implements com. Returns the current value as a newly-allocated byte array. |
| public IonCursor. | nextValue()
Overrides com. Implements com. Advances the cursor to the next value, skipping the current value (if any). |
| pack-priv ByteBuffer | Returns: the ByteBuffer.the start of the slice. startIndex, long the end of the slice. endIndex)Prepares the ByteBuffer to wrap a slice of the underlying buffer. |
| pack-priv void | |
| private void | prepareToConvertIntValue()
Loads the scalar converter with an integer value that fits the Ion int on which the reader is positioned. |
| private BigDecimal | Returns: the value.Reads into a BigDecimal the decimal value that begins at `peekIndex` and ends at `valueMarker.endIndex`. |
| private BigDecimal | |
| private BigInteger | Returns: the value.Reads into a BigInteger the integer value that begins at `valueMarker.startIndex` and ends at `valueMarker.endIndex`. |
| private BigInteger | |
| private boolean | |
| private boolean | |
| private Decimal | Returns: the value.Reads into a Decimal the decimal value that begins at `peekIndex` and ends at `valueMarker.endIndex`. |
| private Decimal | |
| private BigInteger | Returns: the value.the length of the value. length)Reads the Int value of the given length that begins at `peekIndex` into a BigInteger. |
| private long | Returns: the value.Reads into a long the integer value that begins at `valueMarker.startIndex` and ends at `valueMarker.endIndex`. |
| private long | |
| private Timestamp | Returns: the value.Reads the timestamp that begins at `peekIndex` and ends at `valueMarker.endIndex`. |
| private Timestamp | |
| private long | Returns: the value.the index of the first byte in the UInt value. startIndex, long the index of the first byte after the end of the UInt value. endIndex)Reads a UInt. |
| private BigInteger | Returns: the value.true if the resulting BigInteger value should be negative; false if it should be positive. isNegative)Reads into a BigInteger the UInt value that begins at `valueMarker.startIndex` and ends at `valueMarker.endIndex`. |
| private int | Returns: the value.the first byte of the VarInt representation, which has already been retrieved from the buffer. firstByte)Reads a 2+ byte VarInt, given the first byte. |
| private int | |
| private int | |
| pack-priv int | |
| pack-priv int | |
| public String | stringValue()
Implements com. Returns the current value as a Java String. |
| public int | symbolValueId()
Implements com. Gets the symbol ID of the current symbol value. |
| private void | |
| public Timestamp | timestampValue()
Implements com. Returns the current value as a |
| ANNOTATIONS_LIST_INITIAL_CAPACITY | back to summary |
|---|---|
| private static final int ANNOTATIONS_LIST_INITIAL_CAPACITY | |
| annotationSids | back to summary |
|---|---|
| private final IntList annotationSids | |
| FLOAT_32_BYTE_LENGTH | back to summary |
|---|---|
| private static final int FLOAT_32_BYTE_LENGTH | |
| HIGHEST_BIT_BITMASK | back to summary |
|---|---|
| private static final int HIGHEST_BIT_BITMASK Hides com. | |
| INT_SIZE_IN_BYTES | back to summary |
|---|---|
| private static final int INT_SIZE_IN_BYTES | |
| lobBytesRead | back to summary |
|---|---|
| private int lobBytesRead | |
| LONG_SIZE_IN_BYTES | back to summary |
|---|---|
| private static final int LONG_SIZE_IN_BYTES | |
| LOWER_SEVEN_BITS_BITMASK | back to summary |
|---|---|
| private static final int LOWER_SEVEN_BITS_BITMASK Hides com. | |
| LOWER_SIX_BITS_BITMASK | back to summary |
|---|---|
| private static final int LOWER_SIX_BITS_BITMASK | |
| MOST_SIGNIFICANT_BYTE_OF_MAX_INTEGER | back to summary |
|---|---|
| private static final int MOST_SIGNIFICANT_BYTE_OF_MAX_INTEGER | |
| MOST_SIGNIFICANT_BYTE_OF_MIN_INTEGER | back to summary |
|---|---|
| private static final int MOST_SIGNIFICANT_BYTE_OF_MIN_INTEGER | |
| peekIndex | back to summary |
|---|---|
| pack-priv long peekIndex | |
| scalarConverter | back to summary |
|---|---|
| private final _Private_ScalarConversions. | |
| scratchForSize | back to summary |
|---|---|
| private final byte[][] scratchForSize | |
| SINGLE_BYTE_MASK | back to summary |
|---|---|
| private static final int SINGLE_BYTE_MASK | |
| utf8Decoder | back to summary |
|---|---|
| pack-priv final Utf8StringDecoder utf8Decoder | |
| VALUE_BITS_PER_UINT_BYTE | back to summary |
|---|---|
| private static final int VALUE_BITS_PER_UINT_BYTE | |
| VALUE_BITS_PER_VARUINT_BYTE | back to summary |
|---|---|
| private static final int VALUE_BITS_PER_VARUINT_BYTE Hides com. | |
| VAR_INT_NEGATIVE_ZERO | back to summary |
|---|---|
| private static final int VAR_INT_NEGATIVE_ZERO | |
| VAR_INT_SIGN_BITMASK | back to summary |
|---|---|
| private static final int VAR_INT_SIGN_BITMASK | |
| IonReaderContinuableCoreBinary | back to summary |
|---|---|
| pack-priv IonReaderContinuableCoreBinary(IonBufferConfiguration configuration, byte[] bytes, int offset, int length) Constructs a new reader from the given byte array.
| |
| IonReaderContinuableCoreBinary | back to summary |
|---|---|
| pack-priv IonReaderContinuableCoreBinary(IonBufferConfiguration configuration, InputStream inputStream, byte[] alreadyRead, int alreadyReadOff, int alreadyReadLen) Constructs a new reader from the given input stream.
| |
| 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
| |
| classifyInteger_1_0 | back to summary |
|---|---|
| private boolean classifyInteger_1_0() Determines whether the integer starting at `valueMarker.startIndex` and ending at `valueMarker.endIndex` crosses a type boundary. Callers must only invoke this method when the integer's size is known to be either 4 or 8 bytes.
| |
| close | back to summary |
|---|---|
| public void close() Overrides com. 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
| |
| copyBytesToScratch | back to summary |
|---|---|
| private byte[] copyBytesToScratch(long startIndex, int length) Copy the requested number of bytes from the buffer into a scratch buffer of exactly the requested length.
| |
| 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.
| |
| getAndClearSignBit_1_0 | back to summary |
|---|---|
| private int getAndClearSignBit_1_0(byte[] intBytes) Get and clear the most significant bit in the given byte array.
| |
| getAnnotationIds | back to summary |
|---|---|
| public int[] getAnnotationIds() Implements com. Doc from com. Gets the symbol IDs of the annotations 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.
| |
| getAnnotationSidList | back to summary |
|---|---|
| pack-priv IntList getAnnotationSidList() Gets the annotation symbol IDs for the current value, reading them from the buffer first if necessary.
| |
| getBytes | back to summary |
|---|---|
| public int getBytes(byte[] bytes, 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.
| |
| 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.
| |
| getIntegerSize | back to summary |
|---|---|
| public IntegerSize getIntegerSize() Implements com. Doc from com. Returns an
| |
| 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.
| |
| 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,
| |
| 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
| |
| nextValue | back to summary |
|---|---|
| public IonCursor. Overrides com. Implements com. Doc from com. Advances the cursor to the next value, skipping the current value (if any). This method may return:
| |
| prepareByteBuffer | back to summary |
|---|---|
| pack-priv ByteBuffer prepareByteBuffer(long startIndex, long endIndex) Prepares the ByteBuffer to wrap a slice of the underlying buffer.
| |
| prepareScalar | back to summary |
|---|---|
| pack-priv void prepareScalar() Performs any logic necessary to prepare a scalar value for parsing. Subclasses may wish to provide additional logic, such as ensuring that the value is present in the buffer. | |
| prepareToConvertIntValue | back to summary |
|---|---|
| private void prepareToConvertIntValue() Loads the scalar converter with an integer value that fits the Ion int on which the reader is positioned. | |
| readBigDecimal_1_0 | back to summary |
|---|---|
| private BigDecimal readBigDecimal_1_0() Reads into a BigDecimal the decimal value that begins at `peekIndex` and ends at `valueMarker.endIndex`.
| |
| readBigDecimal_1_1 | back to summary |
|---|---|
| private BigDecimal readBigDecimal_1_1() | |
| readBigInteger_1_0 | back to summary |
|---|---|
| private BigInteger readBigInteger_1_0() Reads into a BigInteger the integer value that begins at `valueMarker.startIndex` and ends at `valueMarker.endIndex`.
| |
| readBigInteger_1_1 | back to summary |
|---|---|
| private BigInteger readBigInteger_1_1() | |
| readBoolean_1_0 | back to summary |
|---|---|
| private boolean readBoolean_1_0() Reads the boolean value using the type ID of the current value.
| |
| readBoolean_1_1 | back to summary |
|---|---|
| private boolean readBoolean_1_1() | |
| readDecimal_1_0 | back to summary |
|---|---|
| private Decimal readDecimal_1_0() Reads into a Decimal the decimal value that begins at `peekIndex` and ends at `valueMarker.endIndex`.
| |
| readDecimal_1_1 | back to summary |
|---|---|
| private Decimal readDecimal_1_1() | |
| readIntAsBigInteger_1_0 | back to summary |
|---|---|
| private BigInteger readIntAsBigInteger_1_0(int length) Reads the Int value of the given length that begins at `peekIndex` into a BigInteger.
| |
| readLong_1_0 | back to summary |
|---|---|
| private long readLong_1_0() Reads into a long the integer value that begins at `valueMarker.startIndex` and ends at `valueMarker.endIndex`.
| |
| readLong_1_1 | back to summary |
|---|---|
| private long readLong_1_1() | |
| readTimestamp_1_0 | back to summary |
|---|---|
| private Timestamp readTimestamp_1_0() Reads the timestamp that begins at `peekIndex` and ends at `valueMarker.endIndex`.
| |
| readTimestamp_1_1 | back to summary |
|---|---|
| private Timestamp readTimestamp_1_1() | |
| readUInt | back to summary |
|---|---|
| private long readUInt(long startIndex, long endIndex) Reads a UInt.
| |
| readUIntAsBigInteger | back to summary |
|---|---|
| private BigInteger readUIntAsBigInteger(boolean isNegative) Reads into a BigInteger the UInt value that begins at `valueMarker.startIndex` and ends at `valueMarker.endIndex`.
| |
| readVarInt_1_0 | back to summary |
|---|---|
| private int readVarInt_1_0(int firstByte) Reads a 2+ byte VarInt, given the first byte. When called, `peekIndex` must point at the second byte in the VarInt. at `peekIndex`.When this method returns, `peekIndex` will point at the first byte that follows the VarInt. Note the VarInt must fit in an `int`.
| |
| readVarInt_1_0 | back to summary |
|---|---|
| private int readVarInt_1_0() Reads the VarInt starting at `peekIndex`. When this method returns, `peekIndex` will point at the first byte that follows the VarUInt. Note the VarInt must fit in an `int`.
| |
| readVarSym_1_1 | back to summary |
|---|---|
| private int readVarSym_1_1(Marker marker) | |
| readVarUInt_1_0 | back to summary |
|---|---|
| pack-priv int readVarUInt_1_0() Reads the VarUInt starting at `peekIndex`. When this method returns, `peekIndex` will point at the first byte that follows the VarUInt. Note the VarUInt must fit in an `int`.
| |
| readVarUInt_1_1 | back to summary |
|---|---|
| pack-priv int readVarUInt_1_1() | |
| 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
| |
| symbolValueId | back to summary |
|---|---|
| public int symbolValueId() Implements com. Doc from com. Gets the symbol ID of the current symbol 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.
| |
| throwDueToInvalidType | back to summary |
|---|---|
| private void throwDueToInvalidType(IonType type) | |
| timestampValue | back to summary |
|---|---|
| public Timestamp timestampValue() Implements com. Doc from com. Returns the current value as a | |