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()
hasNext() on an interator.public int read()
throws java.io.EOFException
public int readInt()
throws java.io.EOFException
int.Copyright © 2020. All Rights Reserved.