| java.lang.Object | ||
| ↳ | java.io.Writer | |
| ↳ | java.io.FilterWriter | |
Wraps an existing Writer and performs some transformation on the output data while it is being written. Transformations can be anything from a simple byte-wise filtering output data to an on-the-fly compression or decompression of the underlying writer. Writers that wrap another writer and provide some additional functionality on top of it usually inherit from this class.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  | out | The Writer being filtered. | |||||||||
| [Expand] 
           Inherited Fields
           | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class java.io.Writer | |||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  | 
           Constructs a new FilterWriter on the Writer 
            out. | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  | 
           Closes this writer.
           | ||||||||||
|  | 
           Flushes this writer to ensure all pending data is sent out to the target writer.
           | ||||||||||
|  | 
           Writes 
            countcharacters from the char arraybufferstarting at positionoffsetto the target writer. | ||||||||||
|  | 
           Writes 
            countcharacters from the stringstrstarting at positionindexto this writer. | ||||||||||
|  | 
           Writes the specified character 
            oneCharto the target writer. | ||||||||||
| [Expand] 
           Inherited Methods
           | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class java.io.Writer | |||||||||||
|  From class java.lang.Object | |||||||||||
|  From interface java.io.Closeable | |||||||||||
|  From interface java.io.Flushable | |||||||||||
|  From interface java.lang.Appendable | |||||||||||
Constructs a new FilterWriter on the Writer out. All writes are now filtered through this writer.
| out | the target Writer to filter writes on. | 
|---|
Closes this writer. This implementation closes the target writer.
| IOException | if an error occurs attempting to close this writer. | 
|---|
Flushes this writer to ensure all pending data is sent out to the target writer. This implementation flushes the target writer.
| IOException | if an error occurs attempting to flush this writer. | 
|---|
Writes count characters from the char array buffer starting at position offset to the target writer.
| buffer | the buffer to write. | 
|---|---|
| offset | the index of the first character in bufferto write. | 
| count | the number of characters in bufferto write. | 
| IOException | if an error occurs while writing to this writer. | 
|---|
Writes count characters from the string str starting at position index to this writer. This implementation writes str to the target writer.
| str | the string to be written. | 
|---|---|
| offset | the index of the first character in strto write. | 
| count | the number of chars in strto write. | 
| IOException | if an error occurs while writing to this writer. | 
|---|
Writes the specified character oneChar to the target writer. Only the two least significant bytes of the integer oneChar are written.
| oneChar | the char to write to the target writer. | 
|---|
| IOException | if an error occurs while writing to this writer. | 
|---|