Package net.i2p.servlet.util
Class WriterOutputStream
java.lang.Object
java.io.OutputStream
net.i2p.servlet.util.WriterOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class WriterOutputStream extends OutputStream
Treat a writer as an output stream. Quick 'n dirty, none
of that "intarnasheeonaleyzayshun" stuff. So we can treat
the jsp's PrintWriter as an OutputStream
- Since:
- 0.9.33 consolidated from routerconsole and i2psnark
-
Constructor Summary
Constructors Constructor Description WriterOutputStream(Writer writer)
-
Method Summary
Modifier and Type Method Description void
write(int b)
-
Constructor Details
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-