Class CopyingServletOutputStream

java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
org.nuxeo.ecm.platform.web.common.idempotency.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 Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.apache.commons.io.output.DeferredFileOutputStream
     
    protected final javax.servlet.ServletOutputStream
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CopyingServletOutputStream(javax.servlet.ServletOutputStream output, org.apache.commons.io.output.DeferredFileOutputStream copy)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    boolean
     
    void
    setWriteListener(javax.servlet.WriteListener writeListener)
     
    void
    write(byte[] b)
     
    void
    write(byte[] b, int off, int len)
     
    void
    write(int b)
     

    Methods inherited from class javax.servlet.ServletOutputStream

    print, print, print, print, print, print, print, println, println, println, println, println, println, println, println

    Methods inherited from class java.io.OutputStream

    nullOutputStream

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • output

      protected final javax.servlet.ServletOutputStream output
    • copy

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

    • CopyingServletOutputStream

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