| Modifier and Type | Field and Description |
|---|---|
| private CharsetDecoder | |
| private boolean | |
| private final Writer |
| Access | Constructor and Description |
|---|---|
| public | WriterOutputStream(Writer
java.io.Writer object to be converted to. writer)Creates WriterOutputStream from given java.io.Writer object with a default encoding. |
| public | WriterOutputStream(Writer
java.io.Writer object to be converted to. writer, String encoding)Creates WriterOutputStream from given java.io.Writer object with a specified encoding. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | close()
Overrides java. Implements java. Closes this output stream and releases any system resources associated with this stream. |
| public void | flush()
Overrides java. Implements java. Flushes this output stream and forces any buffered output bytes to be written out. |
| public void | write(int
the b)byte.Implements abstract java. Writes the specified byte to this output stream. |
| public void | write(byte[]
the data. b)Overrides java. Writes |
| public void | write(byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. Writes |
| decoder | back to summary |
|---|---|
| private CharsetDecoder decoder | |
| isOpen | back to summary |
|---|---|
| private boolean isOpen | |
| writer | back to summary |
|---|---|
| private final Writer writer | |
| WriterOutputStream | back to summary |
|---|---|
| public WriterOutputStream(Writer writer) Creates WriterOutputStream from given java.io.Writer object with a default encoding.
| |
| WriterOutputStream | back to summary |
|---|---|
| public WriterOutputStream(Writer writer, String encoding) Creates WriterOutputStream from given java.io.Writer object with a specified encoding.
| |
| byte2char | back to summary |
|---|---|
| private void byte2char(ByteBuffer bytes, CharBuffer chars) throws IOException | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements 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.
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements abstract java. Writes the specified byte to this output stream. The general
contract for
| |
| write | back to summary |
|---|---|
| public void write(byte[] b) throws IOException Overrides java. Writes
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) throws IOException Overrides java. Writes
If
| |