Introduction
Description
Declaration Public class ByteArrayOutputStream extends OutputStream
Fields
Table | Constructor | Description |
|---|---|
| ByteArrayOutputStream () | The function of this constructor is to create the byte array output stream. |
| ByteAyyayInputStream ( int size) | The function of this constructor is to create the byte array output stream with represented size of buffer. |
Table | Method | Description |
|---|---|
| void close () | The function of this method is to close the present stream and associated to input stream systems resources are released without any impact. |
| void write (int b) | The function of this method is to write the represented byte into output stream. |
| void write (byte[] b, int off, int n) | By using this method it writes the data up to 'n' bytes from the output stream to an array of bytes. |
| void writeTo(Output stream out) | The function of this method is to write the entire data from this stream to the specified output stream. |
Description
Examples
Key Points