Package org.eclipse.jetty.io
Class WriterOutputStream
java.lang.Object
java.io.OutputStream
org.eclipse.jetty.io.WriterOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Wrap a Writer as an OutputStream.
When all you have is a Writer and only an OutputStream will do.
Try not to use this as it indicates that your design is a dogs
breakfast (JSP made me write it).
-
Field Summary
-
Constructor Summary
ConstructorDescriptionWriterOutputStream
(Writer writer) WriterOutputStream
(Writer writer, String encoding) -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
_writer
-
_encoding
-
-
Constructor Details
-
WriterOutputStream
-
WriterOutputStream
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-