| java.io.DataInput |
Known Indirect Subclasses
|
DataInput is an interface which declares methods for reading in typed data from a Stream. Typically, this stream has been written by a class which implements DataOutput. Types that can be read include byte, 16-bit short, 32-bit int, 32-bit float, 64-bit long, 64-bit double, byte strings, and UTF Strings.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Reads a boolean from this stream.
| |||||||||||
Reads an 8-bit byte value from this stream.
| |||||||||||
Reads a 16-bit character value from this stream.
| |||||||||||
Reads a 64-bit
double value from this stream. | |||||||||||
Reads a 32-bit
float value from this stream. | |||||||||||
Read bytes from this stream and stores them in byte array
buffer starting at offset offset. | |||||||||||
Reads bytes from this stream into the byte array
buffer. | |||||||||||
Reads a 32-bit integer value from this stream.
| |||||||||||
Returns a
String representing the next line of text
available in this BufferedReader. | |||||||||||
Reads a 64-bit
long value from this stream. | |||||||||||
Reads a 16-bit
short value from this stream. | |||||||||||
Reads a UTF format String from this Stream.
| |||||||||||
Reads an unsigned 8-bit
byte value from this stream and
returns it as an int. | |||||||||||
Reads a 16-bit unsigned
short value from this stream and
returns it as an int. | |||||||||||
Skips
count number of bytes in this stream. | |||||||||||
Reads a boolean from this stream.
| IOException | If a problem occurs reading from this stream. |
|---|
Reads an 8-bit byte value from this stream.
| IOException | If a problem occurs reading from this stream. |
|---|
Reads a 16-bit character value from this stream.
char value from the source stream.| IOException | If a problem occurs reading from this stream. |
|---|
Reads a 64-bit double value from this stream.
double value from the source stream.| IOException | If a problem occurs reading from this stream. |
|---|
Reads a 32-bit float value from this stream.
float value from the source stream.| IOException | If a problem occurs reading from this stream. |
|---|
Read bytes from this stream and stores them in byte array
buffer starting at offset offset. This
method blocks until count number of bytes have been read.
| buffer | the byte array in which to store the read bytes. |
|---|---|
| offset | the offset in buffer to store the read bytes. |
| count | the maximum number of bytes to store in buffer. |
| IOException | If a problem occurs reading from this stream. |
|---|
Reads bytes from this stream into the byte array buffer.
This method will block until buffer.length number of bytes
have been read.
| buffer | the buffer to read bytes into |
|---|
| IOException | If a problem occurs reading from this stream. |
|---|
Reads a 32-bit integer value from this stream.
int value from the source stream.| IOException | If a problem occurs reading from this stream. |
|---|
Returns a String representing the next line of text
available in this BufferedReader. A line is represented by 0 or more
characters followed by '\n', '\r',
"\n\r" or end of stream. The String does
not include the newline sequence.
| IOException | If a problem occurs reading from this stream. |
|---|
Reads a 64-bit long value from this stream.
long value from the source stream.| IOException | If a problem occurs reading from this stream. |
|---|
Reads a 16-bit short value from this stream.
short value from the source stream.| IOException | If a problem occurs reading from this stream. |
|---|
Reads a UTF format String from this Stream.
| IOException | If a problem occurs reading from this stream. |
|---|
Reads an unsigned 8-bit byte value from this stream and
returns it as an int.
| IOException | If a problem occurs reading from this stream. |
|---|
Reads a 16-bit unsigned short value from this stream and
returns it as an int.
short value from the source
stream.| IOException | If a problem occurs reading from this stream. |
|---|
Skips count number of bytes in this stream. Subsequent
read()'s will not return these bytes unless
reset() is used.
| count | the number of bytes to skip. |
|---|
| IOException | If a problem occurs reading from this stream. |
|---|