Closes this output stream and releases any system resources associated with this stream.
Flushes this output stream and forces any buffered output bytes to be written out.
Returns a string representation of an object.
Writes b.length bytes from the specified byte array to this output stream.
Writes len bytes from the specified byte array starting at offset off to this output stream.
Writes the specified byte to this output stream.
Static
nullReturns a new OutputStream which discards all bytes.
Prints formatted representations of objects to a text-output stream. This class implements all of the print methods found in ByteArrayOutputStream. It does not contain methods for writing raw bytes, for which a program should use unencoded byte streams.
See java.io.ByteArrayOutputStream for full documentation