public interface ByteArrayDataInput extends DataInput
DataInput
for reading from in-memory byte arrays; its
methods offer identical functionality but do not throw IOException
.
If any method encounters the end of the array prematurely, it throws IllegalStateException
.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() |
String |
readLine() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
int |
skipBytes(int n) |
boolean readBoolean()
readBoolean
in interface DataInput
int readUnsignedByte()
readUnsignedByte
in interface DataInput
int readUnsignedShort()
readUnsignedShort
in interface DataInput
double readDouble()
readDouble
in interface DataInput
Copyright © 2010-2012. All Rights Reserved.