Class: java.io.FilterWriter
- public abstract class FilterWriter
- extends Writer
Abstract class for writing filtered character streams.
The abstract class
FilterWriter itself
provides default methods that pass all requests to the
contained stream. Subclasses of FilterWriter
should override some of these methods and may also
provide additional methods and fields.Methods
-
FilterWritertop
protected FilterWriter(Writer out)Create a new filtered writer. -
closetop
public void close() throws IOExceptionCloses this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. -
flushtop
public void flush() throws IOExceptionFlushes the stream. -
writetop
public void write(int c) throws IOExceptionWrites a single character. -
writetop
public void write(String str, int off, int len) throws IOExceptionWrites a portion of a string. -
writetop
public void write(char[] cbuf, int off, int len) throws IOExceptionWrites a portion of an array of characters.
Fields
-
out
protected Writer outThe underlying character-output stream.
