| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ThreadLocal | |
| private boolean | |
| private NIOOutputStream | |
| private boolean | |
| private final HttpServletResponseImpl | |
| private WriteHandler |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides jakarta. Implements java. Closes this output stream and releases any system resources associated with this stream. |
| public void | flush()
Overrides java. Implements java. Will send the buffer to the client. |
| protected void | |
| public boolean | isReady()
Implements abstract jakarta. Returns |
| pack-priv void | |
| public void | setWriteListener(WriteListener writeListener)
Implements abstract jakarta. Instructs the |
| public void | write(int i)
Implements abstract java. Writes the specified byte to this output stream. |
| public void | write(byte[] b)
Overrides java. Writes |
| public void | write(byte[] b, int off, int len)
Overrides java. Writes |
| CAN_WRITE_SCOPE | back to summary |
|---|---|
| private static final ThreadLocal<Boolean> CAN_WRITE_SCOPE | |
| hasSetWriteListener | back to summary |
|---|---|
| private boolean hasSetWriteListener | |
| outputStream | back to summary |
|---|---|
| private NIOOutputStream outputStream | |
| prevIsReady | back to summary |
|---|---|
| private boolean prevIsReady | |
| servletResponse | back to summary |
|---|---|
| private final HttpServletResponseImpl servletResponse | |
| writeHandler | back to summary |
|---|---|
| private WriteHandler writeHandler | |
| ServletOutputStreamImpl | back to summary |
|---|---|
| protected ServletOutputStreamImpl(final HttpServletResponseImpl servletResponse) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides jakarta. Implements java. Doc from jakarta. Closes this output stream and releases any system resources
associated with this stream. The general contract of
If this method is called when the output stream is in non-blocking mode, it will immediately return with the stream
effectively closed, even if the stream contains buffered data that is yet to be written to client. The container will
write this data out in the background. If this process fails the
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Will send the buffer to the client.
| |
| initialize | back to summary |
|---|---|
| protected void initialize() throws IOException | |
| isReady | back to summary |
|---|---|
| public boolean isReady() Implements abstract jakarta. Doc from jakarta. Returns
If this method returns
| |
| recycle | back to summary |
|---|---|
| pack-priv void recycle() | |
| setWriteListener | back to summary |
|---|---|
| public void setWriteListener(WriteListener writeListener) Implements abstract jakarta. Doc from jakarta. Instructs the
| |
| write | back to summary |
|---|---|
| public void write(int i) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| write | back to summary |
|---|---|
| public void write(byte[] b) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| Modifier and Type | Field and Description |
|---|---|
| private WriteListener |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | onError(final Throwable t)
Implements org. Invoked when an error occurs processing the request asynchronously. |
| public void | onWritePossible()
Implements org. This callback will be invoked when the requirements as dictated by writer are met. |
| writeListener | back to summary |
|---|---|
| private WriteListener writeListener | |
| WriteHandlerImpl | back to summary |
|---|---|
| private WriteHandlerImpl(WriteListener listener) | |
| invokeWriteCallback | back to summary |
|---|---|
| private void invokeWriteCallback() | |
| onError | back to summary |
|---|---|
| public void onError(final Throwable t) Implements org. Doc from org. Invoked when an error occurs processing the request asynchronously.
| |
| onWritePossible | back to summary |
|---|---|
| public void onWritePossible() throws Exception Implements org. Doc from org. This callback will be invoked when the requirements as dictated by writer are met.
| |