java.lang
Class WriterOutputStream
java.lang.Object
java.io.OutputStream
java.lang.WriterOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
class WriterOutputStream
- extends OutputStream
|
Method Summary |
void |
flush()
Flush this OutputStream. |
void |
write(int b)
Writes the specified byte oneByte to this OutputStream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WriterOutputStream
public WriterOutputStream(Writer writer)
write
public void write(int b)
throws IOException
- Description copied from class:
OutputStream
- Writes the specified byte
oneByte to this OutputStream.
Only the low order byte of oneByte is written.
- Specified by:
write in class OutputStream
- Parameters:
b - the byte to be written
- Throws:
IOException - If an error occurs attempting to write to this OutputStream.
flush
public void flush()
throws IOException
- Description copied from class:
OutputStream
- Flush this OutputStream. Concrete implementations of this class should
ensure any pending writes to the underlying stream are written out when
this method is envoked. This implementation does nothing.
- Specified by:
flush in interface Flushable- Overrides:
flush in class OutputStream
- Throws:
IOException - If an error occurs attempting to flush this OutputStream.
Please submit a feedback, bug or feature