Name

FilterOutputStream

Synopsis

This class provides method definitions required to filter the data to be written to the OutputStream specified when the FilterOutputStream is created. It must be subclassed to perform some sort of filtering operation and may not be instantiated directly. See the subclasses BufferedOutputStream and DataOutputStream.

java.io.FilterOutputStream

Figure 9-22. java.io.FilterOutputStream

public class FilterOutputStream extends OutputStream {
// Public Constructors
     public FilterOutputStream(OutputStream out);  
// Public Methods Overriding OutputStream
     public void close( ) throws IOException;  
     public void flush( ) throws IOException;  
     public void write(int b) throws IOException;  
     public void write(byte[ ] b) throws IOException;  
     public void write(byte[ ] b, int off, int len) throws IOException;  
// Protected Instance Fields
     protected OutputStream out;  
}

Subclasses

BufferedOutputStream, DataOutputStream, PrintStream, java.security.DigestOutputStream, java.util.zip.CheckedOutputStream, java.util.zip.DeflaterOutputStream, javax.crypto.CipherOutputStream

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.