Closeable
, Flushable
, Appendable
, AutoCloseable
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
The underlying character-output stream.
Constructors
protected
Create a new filtered writer.
void
Closes the stream, flushing it first.
void
void
write(char[] cbuf, int off, int len)
Writes a portion of an array of characters.
void
Writes a single character.
void
Writes a portion of a string.
Methods declared in class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
The underlying character-output stream.
Create a new filtered writer.
out
- a Writer object to provide the underlying stream.
NullPointerException
- if out
is null
Writes a single character.
write
in class Writer
c
- int specifying a character to be written
IOException
- If an I/O error occurs
throws
IOExceptionWrites a portion of an array of characters.
write
in class Writer
cbuf
- Buffer of characters to be written
off
- Offset from which to start reading characters
len
- Number of characters to be written
IndexOutOfBoundsException
- If the values of the off
and len
parameters cause the corresponding method of the underlying Writer
to throw an IndexOutOfBoundsException
IOException
- If an I/O error occurs
Writes a portion of a string.
write
in class Writer
str
- String to be written
off
- Offset from which to start reading characters
len
- Number of characters to be written
IndexOutOfBoundsException
- If the values of the off
and len
parameters cause the corresponding method of the underlying Writer
to throw an IndexOutOfBoundsException
IOException
- If an I/O error occurs
Flushes the stream.
flush
in interface Flushable
flush
in class Writer
IOException
- If an I/O error occurs
Writer
Closes the stream, flushing it first. Once the stream has been closed, further write() or flush() invocations will cause an IOException to be thrown. Closing a previously closed stream has no effect.
close
in interface AutoCloseable
close
in interface Closeable
close
in class Writer
IOException
- If an I/O error occurs
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4