Package org.zkoss.io
Class WriterOutputStream
java.lang.Object
java.io.OutputStream
org.zkoss.io.WriterOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
An output stream that is on top of a writer.
- Author:
- tomyeh
-
Constructor Summary
ConstructorsConstructorDescriptionWriterOutputStream(Writer writer) Constructs an output stream assuming UTF-8 encoding.WriterOutputStream(Writer writer, String charset) Constructs an out stream with the specified encoding. -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
WriterOutputStream
Constructs an out stream with the specified encoding.- Parameters:
charset- the charset. If null, "UTF-8" is assumed.
-
WriterOutputStream
Constructs an output stream assuming UTF-8 encoding.
-
-
Method Details
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-