|
DthingApi
|
Public Member Functions | |
| DataOutputStream (OutputStream out) | |
| void | close () throws IOException |
| void | flush () throws IOException |
| final int | size () |
| void | write (byte[] buffer, int offset, int count) throws IOException |
| void | write (int oneByte) throws IOException |
| final void | writeBoolean (boolean val) throws IOException |
| final void | writeByte (int val) throws IOException |
| final void | writeBytes (String str) throws IOException |
| final void | writeChar (int val) throws IOException |
| final void | writeChars (String str) throws IOException |
| final void | writeDouble (double val) throws IOException |
| final void | writeFloat (float val) throws IOException |
| final void | writeInt (int val) throws IOException |
| final void | writeLong (long val) throws IOException |
| final void | writeShort (int val) throws IOException |
| final void | writeUTF (String str) throws IOException |
Public Member Functions inherited from java.io.FilterOutputStream | |
| FilterOutputStream (OutputStream out) | |
| void | close () throws IOException |
| void | flush () throws IOException |
| void | write (byte[] buffer, int offset, int length) throws IOException |
| void | write (int oneByte) throws IOException |
Public Member Functions inherited from java.io.OutputStream | |
| OutputStream () | |
| void | close () throws IOException |
| void | flush () throws IOException |
| void | write (byte[] buffer) throws IOException |
| void | write (byte[] buffer, int offset, int count) throws IOException |
| abstract void | write (int oneByte) throws IOException |
Public Member Functions inherited from java.io.DataOutput | |
| abstract void | write (byte[] buffer) throws IOException |
Protected Attributes | |
| int | written |
Protected Attributes inherited from java.io.FilterOutputStream | |
| OutputStream | out |
Wraps an existing OutputStream and writes big-endian typed data to it. Typically, this stream can be read in by DataInputStream. 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.
|
inline |
Constructs a new
on the
. Note that data written by this stream is not in a human readable form but can be reconstructed by using a DataInputStream on the resulting output.
| out | the target stream for writing. |
|
inline |
Closes this output stream and releases any system resources associated with the stream.
The close method calls its flush method, and then calls the close method of its underlying output stream.
| IOException | if an I/O error occurs. |
|
inline |
Flushes this stream to ensure all pending data is sent out to the target stream. This implementation then also flushes the target stream.
| IOException | if an error occurs attempting to flush this stream. |
|
inline |
Returns the total number of bytes written to the target stream so far.
|
inline |
Writes
bytes from the byte array
starting at
to the target stream.
| buffer | the buffer to write to the target stream. |
| offset | the index of the first byte in buffer |
| count | the number of bytes from the buffer |
| IOException | if an error occurs while writing to the target stream. |
| NullPointerException | if buffer null |
Implements java.io.DataOutput.
|
inline |
Writes a byte to the target stream. Only the least significant byte of the integer
is written.
| oneByte | the byte to write to the target stream. |
| IOException | if an error occurs while writing to the target stream. |
Implements java.io.DataOutput.
|
inline |
Writes a boolean to the target stream.
| val | the boolean value to write to the target stream. |
| IOException | if an error occurs while writing to the target stream. |
Implements java.io.DataOutput.
|
inline |
Writes an 8-bit byte to the target stream. Only the least significant byte of the integer
is written.
| val | the byte value to write to the target stream. |
| IOException | if an error occurs while writing to the target stream. |
Implements java.io.DataOutput.
|
inline |
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. |
Implements java.io.DataOutput.
|
inline |
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. |
Implements java.io.DataOutput.
|
inline |
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. |
Implements java.io.DataOutput.
|
inline |
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. |
Implements java.io.DataOutput.
|
inline |
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. |
Implements java.io.DataOutput.
|
inline |
Writes the specified 32-bit int in big-endian order.
| val | the int to write. |
| IOException | if an I/O error occurs while writing. |
Implements java.io.DataOutput.
|
inline |
Writes the specified 64-bit long in big-endian order.
| val | the long to write. |
| IOException | if an I/O error occurs while writing. |
Implements java.io.DataOutput.
|
inline |
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. |
Implements java.io.DataOutput.
|
inline |
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. |
Implements java.io.DataOutput.
|
protected |
The number of bytes written out so far.
1.8.13