public class ByteArrayDataInputStream
extends java.io.ByteArrayInputStream
| Constructor and Description |
|---|
ByteArrayDataInputStream(byte[] buf)
Creates a ByteArrayDataInputStream so that it uses buf as its buffer array
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPosition()
Returns the current stream position
|
byte |
peek()
Returns the next available byte without changing the current stream position
|
int |
readUShort()
Reads an unsigned short value from the stream as little endian
|
public ByteArrayDataInputStream(byte[] buf)
buf - - the input bufferByteArrayInputStream,
DataInputStreampublic int getPosition()
public byte peek()
public int readUShort()