OutputStream Methods:
There are several methods available in OutputStream for basic output needs. The table below lists them.
Method |
Description |
| write(int) |
Writes a single byte to the stream. |
| write(byte[]) |
Writes the entire length of an array of bytes to the stream. |
| write(byte[], int, int) |
Writes a portion of an array of bytes starting at a specific location in the array for a certain number of bytes. |
| flush() |
If the output stream is buffered, this method will force any bytes in the buffer to be written to the stream. |
| close() |
Closes the output stream and releases any resources allocated by the stream. |
|