Package org.nuxeo.ecm.core.io
Class DummyServletOutputStream
java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
org.nuxeo.ecm.core.io.DummyServletOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class DummyServletOutputStream
extends javax.servlet.ServletOutputStream
A dummy
ServletOutputStream
for tests.- Since:
- 2023.0
-
Field Summary
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionboolean
isReady()
void
setWriteListener
(javax.servlet.WriteListener writeListener) 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
close, flush, nullOutputStream, write, write
-
Field Details
-
writer
-
-
Constructor Details
-
DummyServletOutputStream
- Parameters:
out
- theoutputStream
used to delegate the writing
-
DummyServletOutputStream
- Parameters:
writer
- theconsumer
used to delegate the writing
-
-
Method Details
-
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
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-