public class RowInput extends Object
| Constructor and Description |
|---|
RowInput(byte[] bytes)
Constructs a RowInput object
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
readBooleanAtOffset(int offset)
reads a boolean at the specified offset in this RowInput's byte array
|
byte |
readByteAtOffset(int offset)
reads one byte at the specified offset in this RowInput's byte array
|
String |
readBytesAtOffset(int offset,
int numBytes)
returns a String constructed by reading numBytes bytes at the
specified offset in this RowInput's byte array
|
double |
readDoubleAtOffset(int offset)
reads a value of type double at the specified offset in this
RowInput's byte array
|
int |
readIntAtOffset(int offset)
reads an int (a four-byte integer) at the specified offset in this
RowInput's byte array
|
boolean |
readNextBoolean()
reads a boolean at the current offset in this RowInput's byte array
|
byte |
readNextByte()
reads one byte at the current offset in this RowInput's byte array
|
String |
readNextBytes(int numBytes)
returns a String constructed by reading numBytes bytes at the
current offset in this RowInput's byte array
|
double |
readNextDouble()
reads a value of type double at the current offset in
this RowInput's byte array
|
int |
readNextInt()
reads an int (a four-byte integer) at the current offset in
this RowInput's byte array
|
short |
readNextShort()
reads a short (a two-byte integer) at the current offset in
this RowInput's byte array
|
short |
readShortAtOffset(int offset)
reads a short (a two-byte integer) at the specified offset in this
RowInput's byte array
|
String |
toString()
Returns a String representation of this RowInput object that
includes the underlying byte array and the current offset.
|
public boolean readBooleanAtOffset(int offset)
IllegalArgumentException - if offset is negative or too largeIllegalStateException - if the read cannot be performed
for some other reasonpublic boolean readNextBoolean()
IllegalStateException - if the read cannot be performedpublic byte readByteAtOffset(int offset)
IllegalArgumentException - if offset is negative or too largeIllegalStateException - if the read cannot be performed
for some other reasonpublic byte readNextByte()
IllegalStateException - if the read cannot be performedpublic short readShortAtOffset(int offset)
IllegalArgumentException - if offset is negative or too largeIllegalStateException - if the read cannot be performed
for some other reasonpublic short readNextShort()
IllegalStateException - if the read cannot be performedpublic int readIntAtOffset(int offset)
IllegalArgumentException - if offset is negative or too largeIllegalStateException - if the read cannot be performed
for some other reasonpublic int readNextInt()
IllegalStateException - if the read cannot be performedpublic double readDoubleAtOffset(int offset)
IllegalArgumentException - if offset is negative or too largeIllegalStateException - if the read cannot be performed
for some other reasonpublic double readNextDouble()
IllegalStateException - if the read cannot be performedpublic String readBytesAtOffset(int offset, int numBytes)
IllegalArgumentException - if either value is negative
or if offset is too large to read numBytes bytesIllegalStateException - if the read cannot be performed
for some other reasonpublic String readNextBytes(int numBytes)
IllegalArgumentException - if numBytes is negative
or if it is too large given the current offsetIllegalStateException - if the read cannot be performed
for some other reason