|
DthingApi
|
Public Member Functions | |
| abstract void | write (byte[] buffer) throws IOException |
| abstract void | write (byte[] buffer, int offset, int count) throws IOException |
| abstract void | write (int oneByte) throws IOException |
| abstract void | writeBoolean (boolean val) throws IOException |
| abstract void | writeByte (int val) throws IOException |
| abstract void | writeBytes (String str) throws IOException |
| abstract void | writeChar (int val) throws IOException |
| abstract void | writeChars (String str) throws IOException |
| abstract void | writeDouble (double val) throws IOException |
| abstract void | writeFloat (float val) throws IOException |
| abstract void | writeInt (int val) throws IOException |
| abstract void | writeLong (long val) throws IOException |
| abstract void | writeShort (int val) throws IOException |
| abstract void | writeUTF (String str) throws IOException |
Defines an interface for classes that are able to write big-endian typed data to some target. Typically, this data can be read in by a class which implements DataInput. Types that can be written include byte, 16-bit short, 32-bit int, 32-bit float, 64-bit long, 64-bit double, byte strings, and MUTF-8 encoded strings.
|
abstract |
Writes the entire contents of the byte array
to this stream.
| buffer | the buffer to write. |
| IOException | if an I/O error occurs while writing. |
|
abstract |
Writes
bytes from the byte array
starting at offset
.
| buffer | the buffer to write. |
| offset | the index of the first byte in buffer |
| count | the number of bytes from the buffer |
| IOException | if an I/O error occurs while writing. |
Implemented in java.io.DataOutputStream.
|
abstract |
Writes the specified 8-bit byte.
| oneByte | the byte to write. |
| IOException | if an I/O error occurs while writing. |
Implemented in java.io.DataOutputStream.
|
abstract |
Writes the specified boolean.
| val | the boolean value to write. |
| IOException | if an I/O error occurs while writing. |
Implemented in java.io.DataOutputStream.
|
abstract |
Writes the specified 8-bit byte.
| val | the byte value to write. |
| IOException | if an I/O error occurs while writing. |
Implemented in java.io.DataOutputStream.
|
abstract |
Writes the low order 8-bit bytes from the specified string.
| str | the string containing the bytes to write. |
| IOException | if an I/O error occurs while writing. |
Implemented in java.io.DataOutputStream.
|
abstract |
Writes the specified 16-bit character in big-endian order. Only the two least significant bytes of the integer
are written.
| val | the character to write. |
| IOException | if an I/O error occurs while writing. |
Implemented in java.io.DataOutputStream.
|
abstract |
Writes the 16-bit characters contained in
in big-endian order.
| str | the string that contains the characters to write. |
| IOException | if an I/O error occurs while writing. |
Implemented in java.io.DataOutputStream.
|
abstract |
Writes the specified 64-bit double in big-endian order. The resulting output is the eight bytes returned by Double#doubleToLongBits(double).
| val | the double to write. |
| IOException | if an I/O error occurs while writing. |
Implemented in java.io.DataOutputStream.
|
abstract |
Writes the specified 32-bit float in big-endian order. The resulting output is the four bytes returned by Float#floatToIntBits(float).
| val | the float to write. |
| IOException | if an I/O error occurs while writing. |
Implemented in java.io.DataOutputStream.
|
abstract |
Writes the specified 32-bit int in big-endian order.
| val | the int to write. |
| IOException | if an I/O error occurs while writing. |
Implemented in java.io.DataOutputStream.
|
abstract |
Writes the specified 64-bit long in big-endian order.
| val | the long to write. |
| IOException | if an I/O error occurs while writing. |
Implemented in java.io.DataOutputStream.
|
abstract |
Writes the specified 16-bit short in big-endian order. Only the lower two bytes of
are written.
| val | the short to write. |
| IOException | if an I/O error occurs while writing. |
Implemented in java.io.DataOutputStream.
|
abstract |
Writes the specified string encoded in modified UTF-8.
| str | the string to write encoded in modified UTF-8. |
| IOException | if an I/O error occurs while writing. |
Implemented in java.io.DataOutputStream.
1.8.13