FilterWriterNameFilterWriterSynopsis
DescriptionThe FilterWriter class is the superclass of all of the writer classes that filter output. A subclass of FilterWriter works by wrapping an existing writer, called the underlying writer, and providing additional functionality. The methods of FilterWriter simply override the methods of Writer with versions that call the corresponding methods of the underlying writer. FilterWriter cannot be instantiated directly; it must be subclassed. An instance of a subclass of FilterWriter is constructed with another Writer object. The methods of a subclass of FilterWriter should override some methods in order to extend their behavior or provide some sort of filtering. FilterWriter is like FilterOutputStream, except that it deals with a character stream instead of a byte stream. Class Summary
public abstract class java.io.FilterWriter extends java.io.Writer { // Variables protected Writer out; // Constructors protected FilterWriter(Writer out); // Instance Methods public void close(); public void flush(); public void write(int c); public void write(char[] cbuf, int off, int len); public void write(String str, int off, int len); } Variablesoutprotected Writer out
ConstructorsFilterWriterpublic FilterWriter(Writer out)
Instance Methodsclosepublic void close() throws IOException
flushpublic void flush() throws IOException
writepublic void write(int c) throws IOException
public void write(char[] cbuf, int off, int len) throws IOException
public void write(String str, int off, int len) throws IOException
Inherited Methods
See AlsoFilterOutputStream, IOException, String, Writer |
|