class ServletOutputStreamImpl
extends javax.servlet.ServletOutputStream
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
buffer |
private int |
bufferOffset |
private boolean |
closed |
private boolean |
committed |
private HttpServletResponseImpl |
res |
private java.io.OutputStream |
target |
| Constructor and Description |
|---|
ServletOutputStreamImpl(java.io.OutputStream pTarget,
HttpServletResponseImpl pResponse) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
private void |
flush(boolean pClosing) |
(package private) boolean |
isCommitted() |
boolean |
isReady() |
(package private) void |
reset() |
void |
setWriteListener(javax.servlet.WriteListener arg0) |
void |
write(byte[] pChars,
int pOffset,
int pLen) |
void |
write(int b) |
private final java.io.OutputStream target
private final HttpServletResponseImpl res
private final byte[] buffer
private int bufferOffset
private boolean closed
private boolean committed
ServletOutputStreamImpl(java.io.OutputStream pTarget,
HttpServletResponseImpl pResponse)
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] pChars,
int pOffset,
int pLen)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionprivate void flush(boolean pClosing)
throws java.io.IOException
java.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.IOExceptionvoid reset()
boolean isCommitted()
public boolean isReady()
isReady in class javax.servlet.ServletOutputStreampublic void setWriteListener(javax.servlet.WriteListener arg0)
setWriteListener in class javax.servlet.ServletOutputStream