Package org.restlet.engine.io
Class WriterOutputStream
java.lang.Object
java.io.OutputStream
org.restlet.engine.io.WriterOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
Output stream wrapping a character writer.
- Author:
- Kevin Conaway
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Constructor Details
-
WriterOutputStream
Constructor.- Parameters:
writer- The wrapped writer.characterSet- The character set. UseCharacterSet.ISO_8859_1by default if a null value is given.
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-