public final class ShortArrayCodeInput extends BaseCodeCursor implements CodeInput
CodeInput that reads from a short[].| Constructor and Description |
|---|
ShortArrayCodeInput(short[] array)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMore()
Returns whether there are any more code units to read.
|
int |
read()
Reads a code unit.
|
int |
readInt()
Reads two code units, treating them as a little-endian
int. |
long |
readLong()
Reads four code units, treating them as a little-endian
long. |
advance, baseAddressForCursor, cursor, setBaseAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbaseAddressForCursor, cursor, setBaseAddresspublic ShortArrayCodeInput(short[] array)
public boolean hasMore()
CodeInputhasNext() on an interator.public int read()
throws EOFException
CodeInputread in interface CodeInputEOFExceptionpublic int readInt()
throws EOFException
CodeInputint.readInt in interface CodeInputEOFExceptionpublic long readLong()
throws EOFException
CodeInputlong.readLong in interface CodeInputEOFExceptionCopyright © 2016. All Rights Reserved.