|
DthingApi
|
Public Member Functions | |
| abstract boolean | readBoolean () throws IOException |
| abstract byte | readByte () throws IOException |
| abstract char | readChar () throws IOException |
| abstract double | readDouble () throws IOException |
| abstract float | readFloat () throws IOException |
| abstract void | readFully (byte[] dst) throws IOException |
| abstract void | readFully (byte[] dst, int offset, int byteCount) throws IOException |
| abstract int | readInt () throws IOException |
| abstract long | readLong () throws IOException |
| abstract short | readShort () throws IOException |
| abstract int | readUnsignedByte () throws IOException |
| abstract int | readUnsignedShort () throws IOException |
| abstract String | readUTF () throws IOException |
| abstract int | skipBytes (int count) throws IOException |
Defines an interface for classes that are able to read big-endian typed data from some source. Typically, this data 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 MUTF-8 strings.
When encoding strings as UTF, implementations of
and
use a slightly modified form of UTF-8, hereafter referred to as MUTF-8. This form is identical to standard UTF-8, except:
U+10000 … U+10ffff are encoded as a surrogate pair, each of which is represented as a three-byte encoded value. U+0000 is encoded in two-byte form. Please refer to The Unicode Standard for further information about character encoding. MUTF-8 is actually closer to the (relatively less well-known) encoding CESU-8 than to UTF-8 per se.
|
abstract |
Reads a boolean.
| EOFException | if the end of the input is reached before the read request can be satisfied. |
| IOException | if an I/O error occurs while reading. |
Implemented in java.io.DataInputStream.
|
abstract |
Reads an 8-bit byte value.
| EOFException | if the end of the input is reached before the read request can be satisfied. |
| IOException | if an I/O error occurs while reading. |
Implemented in java.io.DataInputStream.
|
abstract |
Reads a big-endian 16-bit character value.
| EOFException | if the end of the input is reached before the read request can be satisfied. |
| IOException | if an I/O error occurs while reading. |
Implemented in java.io.DataInputStream.
|
abstract |
Reads a big-endian 64-bit double value.
| EOFException | if the end of the input is reached before the read request can be satisfied. |
| IOException | if an I/O error occurs while reading. |
Implemented in java.io.DataInputStream.
|
abstract |
Reads a big-endian 32-bit float value.
| EOFException | if the end of the input is reached before the read request can be satisfied. |
| IOException | if an I/O error occurs while reading. |
Implemented in java.io.DataInputStream.
|
abstract |
|
abstract |
Reads
bytes from this stream and stores them in the byte array
starting at
. If
is zero, then this method returns without reading any bytes. Otherwise, this method blocks until
bytes have been read. If insufficient bytes are available,
is thrown. If an I/O error occurs,
is thrown. When an exception is thrown, some bytes may have been consumed from the stream and written into the array.
| dst | the byte array into which the data is read. |
| offset | the offset in dst |
| byteCount | the number of bytes to read. |
| EOFException | if the end of the source stream is reached before enough bytes have been read. |
| IndexOutOfBoundsException | if offset < 0 byteCount < 0 offset + byteCount > dst.length |
| IOException | if a problem occurs while reading from this stream. |
| NullPointerException | if dst |
Implemented in java.io.DataInputStream.
|
abstract |
Reads a big-endian 32-bit integer value.
| EOFException | if the end of the input is reached before the read request can be satisfied. |
| IOException | if an I/O error occurs while reading. |
Implemented in java.io.DataInputStream.
|
abstract |
Reads a big-endian 64-bit long value.
| EOFException | if the end of the input is reached before the read request can be satisfied. |
| IOException | if an I/O error occurs while reading. |
Implemented in java.io.DataInputStream.
|
abstract |
Reads a big-endian 16-bit short value.
| EOFException | if the end of the input is reached before the read request can be satisfied. |
| IOException | if an I/O error occurs while reading. |
Implemented in java.io.DataInputStream.
|
abstract |
Reads an unsigned 8-bit byte value and returns it as an int.
| EOFException | if the end of the input is reached before the read request can be satisfied. |
| IOException | if an I/O error occurs while reading. |
Implemented in java.io.DataInputStream.
|
abstract |
Reads a big-endian 16-bit unsigned short value and returns it as an int.
| EOFException | if the end of the input is reached before the read request can be satisfied. |
| IOException | if an I/O error occurs while reading. |
Implemented in java.io.DataInputStream.
|
abstract |
Reads a string encoded with modified UTF-8.
| EOFException | if the end of the input is reached before the read request can be satisfied. |
| IOException | if an I/O error occurs while reading. |
Implemented in java.io.DataInputStream.
|
abstract |
Skips
number of bytes. This method will not throw an EOFException if the end of the input is reached before
bytes where skipped.
| count | the number of bytes to skip. |
| IOException | if a problem occurs during skipping. |
Implemented in java.io.DataInputStream.
1.8.13