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
-
Constructor Summary
ConstructorDescriptionCopyingServletOutputStream
(javax.servlet.ServletOutputStream output, org.apache.commons.io.output.DeferredFileOutputStream copy) -
Method Summary
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
-
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
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
isReady
public boolean isReady()- Specified by:
isReady
in classjavax.servlet.ServletOutputStream
-
setWriteListener
public void setWriteListener(javax.servlet.WriteListener writeListener) - Specified by:
setWriteListener
in classjavax.servlet.ServletOutputStream
-