A data output stream lets an application write primitive Java data types to an output stream in a portable way.
More...
|
| | DataOutputStream (OutputStream *outputStream, bool own=false) |
| | Creates a new data output stream to write data to the specified underlying output stream. More...
|
| |
| virtual | ~DataOutputStream () |
| |
| virtual long long | size () const |
| | Returns the current value of the counter written, the number of bytes written to this data output stream so far. More...
|
| |
| virtual void | writeBoolean (bool value) |
| |
| virtual void | writeByte (unsigned char value) |
| |
| virtual void | writeShort (short value) |
| |
| virtual void | writeUnsignedShort (unsigned short value) |
| |
| virtual void | writeChar (char value) |
| |
| virtual void | writeInt (int value) |
| |
| virtual void | writeLong (long long value) |
| |
| virtual void | writeFloat (float value) |
| |
| virtual void | writeDouble (double value) |
| |
| virtual void | writeBytes (const std::string &value) |
| |
| virtual void | writeChars (const std::string &value) |
| |
| virtual void | writeUTF (const std::string &value) |
| |
| | FilterOutputStream (OutputStream *outputStream, bool own=false) |
| | Constructor, creates a wrapped output stream. More...
|
| |
| virtual | ~FilterOutputStream () |
| |
| virtual void | flush () |
| | Flushes this stream by writing any buffered output to the underlying stream.- Exceptions
-
The default implementation of this method does nothing. More...
|
| |
| virtual void | close () |
| | Closes this object and deallocates the appropriate resources.The object is generally no longer usable after calling close.- Exceptions
-
The default implementation of this method does nothing. More...
|
| |
| virtual std::string | toString () const |
| | Output a String representation of this object.The default version of this method just prints the Class Name.- Returns
- a string representation of the object.
More...
|
| |
| | OutputStream () |
| |
| virtual | ~OutputStream () |
| |
| virtual void | write (unsigned char c) |
| | Writes a single byte to the output stream. More...
|
| |
| virtual void | write (const unsigned char *buffer, int size) |
| | Writes an array of bytes to the output stream. More...
|
| |
| virtual void | write (const unsigned char *buffer, int size, int offset, int length) |
| | Writes an array of bytes to the output stream in order starting at buffer[offset] and proceeding until the number of bytes specified by the length argument are written or an error occurs. More...
|
| |
| virtual void | lock () |
| | Locks the object. More...
|
| |
| virtual bool | tryLock () |
| | Attempts to Lock the object, if the lock is already held by another thread than this method returns false. More...
|
| |
| virtual void | unlock () |
| | Unlocks the object. More...
|
| |
| virtual void | wait () |
| | Waits on a signal from this object, which is generated by a call to Notify. More...
|
| |
| virtual void | wait (long long millisecs) |
| | Waits on a signal from this object, which is generated by a call to Notify. More...
|
| |
| virtual void | wait (long long millisecs, int nanos) |
| | Waits on a signal from this object, which is generated by a call to Notify. More...
|
| |
| virtual void | notify () |
| | Signals a waiter on this object that it can now wake up and continue. More...
|
| |
| virtual void | notifyAll () |
| | Signals the waiters on this object that it can now wake up and continue. More...
|
| |
| virtual | ~Closeable () |
| |
| virtual | ~Flushable () |
| |
| virtual | ~Synchronizable () |
| |
A data output stream lets an application write primitive Java data types to an output stream in a portable way.
An application can then use a data input stream to read the data back in.