- Java.io package classes
- Java.io - Home
- Java.io - BufferedInputStream
- Java.io - BufferedOutputStream
- Java.io - BufferedReader
- Java.io - BufferedWriter
- Java.io - ByteArrayInputStream
- Java.io - ByteArrayOutputStream
- Java.io - CharArrayReader
- Java.io - CharArrayWriter
- Java.io - Console
- Java.io - DataInputStream
- Java.io - DataOutputStream
- Java.io - File
- Java.io - FileDescriptor
- Java.io - FileInputStream
- Java.io - FileOutputStream
- Java.io - FilePermission
- Java.io - FileReader
- Java.io - FileWriter
- Java.io - FilterInputStream
- Java.io - FilterOutputStream
- Java.io - FilterReader
- Java.io - FilterWriter
- Java.io - InputStream
- Java.io - InputStreamReader
- Java.io - LineNumberInputStream
- Java.io - LineNumberReader
- Java.io - ObjectInputStream
- Java.io - ObjectInputStream.GetField
- Java.io - ObjectOutputStream
- io - ObjectOutputStream.PutField
- Java.io - ObjectStreamClass
- Java.io - ObjectStreamField
- Java.io - OutputStream
- Java.io - OutputStreamWriter
- Java.io - PipedInputStream
- Java.io - PipedOutputStream
- Java.io - PipedReader
- Java.io - PipedWriter
- Java.io - PrintStream
- Java.io - PrintWriter
- Java.io - PushbackInputStream
- Java.io - PushbackReader
- Java.io - RandomAccessFile
- Java.io - Reader
- Java.io - SequenceInputStream
- Java.io - SerializablePermission
- Java.io - StreamTokenizer
- Java.io - StringBufferInputStream
- Java.io - StringReader
- Java.io - StringWriter
- Java.io - Writer
- Java.io package extras
- Java.io - Interfaces
- Java.io - Exceptions
- Java.io package Useful Resources
- Java.io - Discussion
Java.io.FilterOutputStream Class
Introduction
The Java.io.FilterOutputStream class is the superclass of all classes that filter output streams. Following are the important points about FilterOutputStream −
The class itself simply overrides all methods of OutputStream with versions that pass all requests to the contained output stream.
The Subclasses of this class may further override some of these methods and may also provide additional methods and fields.
Class declaration
Following is the declaration for Java.io.FilterOutputStream class −
public class FilterOutputStream extends OutputStream
Field
Following are the fields for Java.io.FilterOutputStream class −
protected OutputStream out − This is the output stream to be filtered.
Class constructors
Sr.No. | Constructor & Description |
---|---|
1 | FilterOutputStream(OutputStream out) This creates an output stream filter built on top of the specified underlying output stream. |
Class methods
Sr.No. | Method & Description |
---|---|
1 | void close()
This method closes this output stream and releases any system resources associated with the stream. |
2 | void flush()
This method flushes this output stream and forces any buffered output bytes to be written out to the stream. |
3 | void write(byte[] b)
This method writes b.length bytes to this output stream. |
4 | void write(byte[] b, int off, int len)
This method writes len bytes from the specified byte array starting at offset off to this output stream. |
5 | void write(int b)
This method writes the specified byte to this output stream. |
Methods inherited
This class inherits methods from the following classes −
- Java.io.Object