| Modifier and Type | Field and Description |
|---|---|
| protected OutputBuffer | |
| protected static final StringManager |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | Returns: true if this OutputStream is currently in non-blocking mode.Checks for concurrent writes which are not permitted. |
| private void | checkRegisterForWrite()
Checks to see if there is data left in the Coyote output buffers (NOT the servlet output buffer) and if so registers the associated socket for write so the buffers will be emptied. |
| pack-priv void | |
| protected Object | |
| public void | close()
Overrides java. 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. |
| public boolean | isReady()
Implements abstract jakarta. Checks if a non-blocking write will succeed. |
| public void | setWriteListener(WriteListener
The non-blocking IO write listener listener)Implements abstract jakarta. Sets the |
| public void | write(int
the i)byte.Implements abstract java. Writes the specified byte to this output stream. |
| public void | write(byte[]
the data. b)Overrides java. Writes |
| public void | write(byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. Writes |
| public void |
| ob | back to summary |
|---|---|
| protected OutputBuffer ob | |
| sm | back to summary |
|---|---|
| protected static final StringManager sm | |
| CoyoteOutputStream | back to summary |
|---|---|
| protected CoyoteOutputStream(OutputBuffer ob) | |
| checkNonBlockingWrite | back to summary |
|---|---|
| private boolean checkNonBlockingWrite() Checks for concurrent writes which are not permitted. This object has no state information so the call chain is CoyoteOutputStream->OutputBuffer->CoyoteResponse.
| |
| checkRegisterForWrite | back to summary |
|---|---|
| private void checkRegisterForWrite() Checks to see if there is data left in the Coyote output buffers (NOT the servlet output buffer) and if so registers the associated socket for write so the buffers will be emptied. The container will take care of this. As far as the app is concerned, there is a non-blocking write in progress. It doesn't have visibility of whether the data is buffered in the socket buffer or the Coyote buffers. | |
| clear | back to summary |
|---|---|
| pack-priv void clear() Clear facade. | |
| clone | back to summary |
|---|---|
| protected Object clone() throws CloneNotSupportedException Overrides java. Prevent cloning the facade.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Will send the buffer to the client.
| |
| isReady | back to summary |
|---|---|
| public boolean isReady() Implements abstract jakarta. Doc from jakarta. Checks if a non-blocking write will succeed. If this returns
| |
| setWriteListener | back to summary |
|---|---|
| public void setWriteListener(WriteListener listener) Implements abstract jakarta. Doc from jakarta. Sets 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
| |
| write | back to summary |
|---|---|
| public void write(ByteBuffer from) throws IOException | |