public class TeeServletOutputStream
extends javax.servlet.ServletOutputStream
| Modifier and Type | Field and Description |
|---|---|
(package private) java.io.ByteArrayOutputStream |
baosCopy |
(package private) javax.servlet.ServletOutputStream |
underlyingStream |
| Constructor and Description |
|---|
TeeServletOutputStream(javax.servlet.ServletResponse httpServletResponse) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
(package private) byte[] |
getOutputStreamAsByteArray() |
boolean |
isReady() |
void |
setWriteListener(javax.servlet.WriteListener listener) |
void |
write(byte[] byteArray) |
void |
write(byte[] byteArray,
int offset,
int length) |
void |
write(int val) |
final javax.servlet.ServletOutputStream underlyingStream
final java.io.ByteArrayOutputStream baosCopy
TeeServletOutputStream(javax.servlet.ServletResponse httpServletResponse)
throws java.io.IOException
java.io.IOExceptionbyte[] getOutputStreamAsByteArray()
public void write(int val)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] byteArray)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] byteArray,
int offset,
int length)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void setWriteListener(javax.servlet.WriteListener listener)
setWriteListener in class javax.servlet.ServletOutputStreampublic boolean isReady()
isReady in class javax.servlet.ServletOutputStream