public interface ByteArrayDataInput
extends java.io.DataInput
DataInput for reading from in-memory byte arrays; its methods offer
identical functionality but do not throw IOException.
Warning: The caller is responsible for not attempting to read past the end of the
array. If any method encounters the end of the array prematurely, it throws IllegalStateException to signify programmer error. This behavior is a technical violation
of the supertype's contract, which specifies a checked exception.
| Modifier and Type | Method and Description |
|---|---|
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
java.lang.String |
readLine() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
java.lang.String |
readUTF() |
int |
skipBytes(int n) |
void readFully(byte[] b)
readFully in interface java.io.DataInputvoid readFully(byte[] b,
int off,
int len)
readFully in interface java.io.DataInputint skipBytes(int n)
skipBytes in interface java.io.DataInputboolean readBoolean()
readBoolean in interface java.io.DataInputbyte readByte()
readByte in interface java.io.DataInputint readUnsignedByte()
readUnsignedByte in interface java.io.DataInputshort readShort()
readShort in interface java.io.DataInputint readUnsignedShort()
readUnsignedShort in interface java.io.DataInputchar readChar()
readChar in interface java.io.DataInputint readInt()
readInt in interface java.io.DataInputlong readLong()
readLong in interface java.io.DataInputfloat readFloat()
readFloat in interface java.io.DataInputdouble readDouble()
readDouble in interface java.io.DataInput@CheckForNull java.lang.String readLine()
readLine in interface java.io.DataInputjava.lang.String readUTF()
readUTF in interface java.io.DataInput