java.lang.Object
java.io.OutputStream
net.i2p.servlet.util.WriterOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class WriterOutputStreamextends 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
  • Field Details

    • _writer

      private final Writer _writer
      The writer that decoded bytes are written to.
  • Constructor Details

    • WriterOutputStream

      public WriterOutputStream(Writer writer)
      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