java.io.FilterOutputStream
This class is the superclass of all classes that filter output streams. These streams sit on top of an already existing output stream (the underlying output stream) which it uses as its basic sink of data, but possibly transforming the data along the way or providing additional functionality.
The class FilterOutputStream itself simply overrides all methods of OutputStream with versions that pass all requests to the underlying output stream. Subclasses of FilterOutputStream may further override some of these methods as well as provide additional methods and fields.
Some methods of FilterOutputStream class
close(): This method closes this output stream and releases any system resources associated with the stream.
flush(): This method flushes this output stream and forces any buffered output bytes to be written out to the stream.
write(byte[]): This method writes b.length bytes to this output stream.
write(int): This method writes the specified byte to this output stream.
write(byte[], int, int): This method writes len bytes from the specified byte array starting at offset off to this output stream.
No comments:
Post a Comment