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.OutputStream
java.io.IOException
public void write(byte[] pChars, int pOffset, int pLen) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
private void flush(boolean pClosing) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
void reset()
boolean isCommitted()
public boolean isReady()
isReady
in class javax.servlet.ServletOutputStream
public void setWriteListener(javax.servlet.WriteListener arg0)
setWriteListener
in class javax.servlet.ServletOutputStream