Java in a Nutshell, 5th Edition [Electronic resources]

نسخه متنی -صفحه : 1191/ 136
نمايش فراداده

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.

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