Package | Description |
---|---|
java.io |
Input/Output support
|
Modifier and Type | Method and Description |
---|---|
boolean |
DataInput.readBoolean()
This method reads a Java boolean value from an input stream.
|
byte |
DataInput.readByte()
This method reads a Java byte value from an input stream.
|
char |
DataInput.readChar()
This method reads a Java
char value from an input stream. |
double |
DataInput.readDouble()
This method reads a Java double value from an input stream.
|
float |
DataInput.readFloat()
This method reads a Java float value from an input stream.
|
void |
DataInput.readFully(byte[] buf)
This method reads raw bytes into the passed array until the array is
full.
|
void |
DataInput.readFully(byte[] buf,
int offset,
int len)
This method reads raw bytes into the passed array
buf
starting
offset bytes into the buffer. |
int |
DataInput.readInt()
This method reads a Java
int value from an input stream
It operates by reading four bytes from the stream and converting them to
a single Java int . |
long |
DataInput.readLong()
This method reads a Java
long value from an input stream
It operates by reading eight bytes from the stream and converting them to
a single Java long . |
short |
DataInput.readShort()
This method reads a signed 16-bit value into a Java in from the stream.
|
int |
DataInput.readUnsignedByte()
This method reads 8 unsigned bits into a Java
int value from
the stream. |
int |
DataInput.readUnsignedShort()
This method reads 16 unsigned bits into a Java int value from the stream.
|
String |
DataInput.readUTF()
This method reads a
String from an input stream that is
encoded in a modified UTF-8 format. |
int |
DataInput.skipBytes(int numBytes)
This method skips and discards the specified number of bytes in an
input stream.
|