7.3 The OuputStream class 

Previous Index Next 


The OutputStream class is an abstract class from which all output streams inherit. It has several methods that are common to all output streams. These methods are:
 
 
close Closes this output stream and releases any system resources associated with this stream.
flush Flushes this output stream and forces any buffered output bytes to be written out.
write Writes the specified byte to this output stream. This method is overloaded so that an array of bytes can also be written.
 
Some of the sub-classes of OuputStream are:  


Source   1