Package nl.vpro.web.support
Class WrappedServletOutputStream
java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
nl.vpro.web.support.WrappedServletOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class WrappedServletOutputStream
extends javax.servlet.ServletOutputStream
To wrap the output stream we need an implementation of a ServletOutputStream
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isReady()
void
setWriteListener
(javax.servlet.WriteListener writeListener) void
write
(@org.checkerframework.checker.nullness.qual.NonNull byte[] b) void
write
(@org.checkerframework.checker.nullness.qual.NonNull 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
close, flush, nullOutputStream
-
Constructor Details
-
WrappedServletOutputStream
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(@org.checkerframework.checker.nullness.qual.NonNull byte[] b, int off, int len) throws IOException - Overrides:
write
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
-