Class FilterServletOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    public class FilterServletOutputStream
    extends javax.servlet.ServletOutputStream
    ServletOutputStream that writes to the specified output stream.
    Author:
    Kohsuke Kawaguchi
    • Constructor Detail

      • FilterServletOutputStream

        public FilterServletOutputStream​(OutputStream out,
                                         javax.servlet.ServletOutputStream realStream)
        Constructs a new FilterOutputStream.
        Parameters:
        out - the stream that sits above the realStream, performing some filtering. This must be eventually delegating eventual writes to realStream.
        realStream - the actual underlying ServletOutputStream from the container. Used to check the isReady() state and to add WriteListeners.