java.lang.Object
java.io.OutputStream
net.i2p.servlet.util.WriterOutputStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
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
Field Summary
Constructor Summary
ConstructorsConstructorDescriptionWriterOutputStream(Writer writer) Wraps the writer so it can be used as the destination stream.Method Summary
All MethodsModifier and TypeMethodDescriptionvoidwrite(int b) Writes the low byte of the argument to the wrapped writer.Methods inherited from class OutputStream
close, flush, nullOutputStream, write, write
Field Details
_writer
The writer that decoded bytes are written to.
Constructor Details
WriterOutputStream
Wraps the writer so it can be used as the destination stream.- Parameters:
writer- the writer this stream writes into, letting a PrintWriter serve as an OutputStream
Method Details
write
Writes the low byte of the argument to the wrapped writer.- Specified by:
writein classOutputStream- Throws:
IOException