| java.lang.Object java.io.Writer java.io.FilterWriter
FilterWriter | abstract public class FilterWriter extends Writer (Code) | | FilterWriter is a class which takes a Writer and filters the
output in some way. The filtered view may be a buffered output or one which
compresses data before actually writing the bytes.
See Also: FilterWriter |
Field Summary | |
protected Writer | out The Writer being filtered. |
Constructor Summary | |
protected | FilterWriter(Writer out) Constructs a new FilterWriter on the Writer out . |
Method Summary | |
public void | close() Close this FilterWriter. | public void | flush() Flush this FilteredWriter to ensure all pending data is sent out to the
target Writer. | public void | write(char buffer, int offset, int count) Writes count chars from the char array
buffer starting at offset index to this
FilterWriter. | public void | write(int oneChar) Writes the specified char oneChar to this FilterWriter.
Only the 2 low order bytes of oneChar is written. | public void | write(String str, int offset, int count) Writes count chars from the String
str starting at offset index to this
FilterWriter. |
FilterWriter | protected FilterWriter(Writer out)(Code) | | Constructs a new FilterWriter on the Writer out . All
writes are now filtered through this Writer.
Parameters: out - the target Writer to filter writes on. |
close | public void close() throws IOException(Code) | | Close this FilterWriter. Closes the Writer out by default.
This will close any downstream Writers as well. Any additional processing
required by concrete subclasses should be provided in their own
close implementation.
throws: java.io.IOException - If an error occurs attempting to close this FilterWriter. |
flush | public void flush() throws IOException(Code) | | Flush this FilteredWriter to ensure all pending data is sent out to the
target Writer. This implementation flushes the target Writer.
throws: java.io.IOException - If an error occurs attempting to flush this FilterWriter. |
write | public void write(char buffer, int offset, int count) throws IOException(Code) | | Writes count chars from the char array
buffer starting at offset index to this
FilterWriter. This implementation writes the buffer to the
target Writer.
Parameters: buffer - the buffer to be written Parameters: offset - offset in buffer to get chars Parameters: count - number of chars in buffer to write throws: java.io.IOException - If an error occurs attempting to write to this FilterWriter. |
write | public void write(int oneChar) throws IOException(Code) | | Writes the specified char oneChar to this FilterWriter.
Only the 2 low order bytes of oneChar is written. This
implementation writes the char to the target Writer.
Parameters: oneChar - the char to be written throws: java.io.IOException - If an error occurs attempting to write to this FilterWriter. |
write | public void write(String str, int offset, int count) throws IOException(Code) | | Writes count chars from the String
str starting at offset index to this
FilterWriter. This implementation writes the str to the
target Writer.
Parameters: str - the String to be written. Parameters: offset - offset in str to get chars. Parameters: count - number of chars in str to write. throws: java.io.IOException - If an error occurs attempting to write to this FilterWriter. |
|
|