| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuffer | |
| private final char[] | |
| private volatile boolean | |
| private final CharsetDecoder | |
| private final Writer |
| Access | Constructor and Description |
|---|---|
| public | |
| public | WriterOutputStream(final Writer
the writer to decode into writer, final CharsetDecoder the charset decoder to use decoder)Construct a new instance. |
| public | WriterOutputStream(final Writer
the writer to decode into writer, final CharsetDecoder the charset decoder to use decoder, int the buffer size to use bufferSize)Construct a new instance. |
| public | WriterOutputStream(final Writer
the writer to decode into writer, final Charset the character set to use charset)Construct a new instance. |
| public | WriterOutputStream(final Writer
the writer to decode into writer, final String the character set name to use charsetName)Construct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. Closes this output stream and releases any system resources associated with this stream. |
| private void | |
| public void | flush()
Overrides java. Implements java. Flushes this output stream and forces any buffered output bytes to be written out. |
| private static CharsetDecoder | |
| public String | Returns: the stringOverrides java. Get the string representation of this object. |
| public void | write(final int
the b)byte.Implements abstract java. Writes the specified byte to this output stream. |
| public void | write(final byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. Writes |
| byteBuffer | back to summary |
|---|---|
| private final ByteBuffer byteBuffer | |
| chars | back to summary |
|---|---|
| private final char[] chars | |
| closed | back to summary |
|---|---|
| private volatile boolean closed | |
| decoder | back to summary |
|---|---|
| private final CharsetDecoder decoder | |
| writer | back to summary |
|---|---|
| private final Writer writer | |
| WriterOutputStream | back to summary |
|---|---|
| public WriterOutputStream(final Writer writer) Construct a new instance.
| |
| WriterOutputStream | back to summary |
|---|---|
| public WriterOutputStream(final Writer writer, final CharsetDecoder decoder) Construct a new instance.
| |
| WriterOutputStream | back to summary |
|---|---|
| public WriterOutputStream(final Writer writer, final CharsetDecoder decoder, int bufferSize) Construct a new instance.
| |
| WriterOutputStream | back to summary |
|---|---|
| public WriterOutputStream(final Writer writer, final Charset charset) Construct a new instance. | |
| WriterOutputStream | back to summary |
|---|---|
| public WriterOutputStream(final Writer writer, final String charsetName) throws UnsupportedEncodingException Construct a new instance.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| doFlush | back to summary |
|---|---|
| private void doFlush(final boolean eof) throws IOException | |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Doc from java. Flushes this output stream and forces any buffered output bytes
to be written out. The general contract of If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.
| |
| getDecoder | back to summary |
|---|---|
| private static CharsetDecoder getDecoder(final Charset charset) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Get the string representation of this object.
| |
| write | back to summary |
|---|---|
| public void write(final int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| write | back to summary |
|---|---|
| public void write(final byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |