Class CopyingServletOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    public class CopyingServletOutputStream
    extends javax.servlet.ServletOutputStream
    Captures content written to the target stream.
    Since:
    11.5
    • Field Detail

      • output

        protected final javax.servlet.ServletOutputStream output
      • copy

        protected final org.apache.commons.io.output.DeferredFileOutputStream copy
    • Constructor Detail

      • CopyingServletOutputStream

        public CopyingServletOutputStream​(javax.servlet.ServletOutputStream output,
                                          org.apache.commons.io.output.DeferredFileOutputStream copy)