FilterWriterpublic 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. |
Fields Summary |
---|
protected Writer | outThe underlying character-output stream. |
Constructors Summary |
---|
protected FilterWriter(Writer out)Create a new filtered writer.
super(out);
this.out = out;
|
Methods Summary |
---|
public void | close()
out.close();
| public void | flush()Flushes the stream.
out.flush();
| public void | write(int c)Writes a single character.
out.write(c);
| public void | write(char[] cbuf, int off, int len)Writes a portion of an array of characters.
out.write(cbuf, off, len);
| public void | write(java.lang.String str, int off, int len)Writes a portion of a string.
out.write(str, off, len);
|
|