ServletOutputStreamImpl
as it does no buffering, and it not tied to an exchange.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private ByteBuffer | buffer
The buffer that is in the process of being written out |
| private final StreamSinkChannel | |
| private static final int | |
| private static final int | |
| private static final int | FLAG_READY
If this stream is ready for a write |
| private final Executor | |
| private WriteListener | |
| private int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. Closes this output stream and releases any system resources associated with this stream. |
| pack-priv void | |
| public void | flush()
Overrides java. Implements java. Flushes this output stream and forces any buffered output bytes to be written out. |
| public boolean | isReady()
Implements abstract jakarta. Returns true if data can be written without blocking else returns false. |
| public void | setWriteListener(final WriteListener
the writeListener)WriteListener that should be notified when it's possible to writeImplements abstract jakarta. Instructs the |
| public void | write(final byte[]
the data. b)Overrides java. Writes |
| public void | write(final byte[]
the data. b, final int the start offset in the data. off, final int the number of bytes to write. len)Overrides java. Writes |
| public void | write(final int
the b)byte.Implements abstract java. Writes the specified byte to this output stream. |
| buffer | back to summary |
|---|---|
| private ByteBuffer buffer The buffer that is in the process of being written out | |
| channel | back to summary |
|---|---|
| private final StreamSinkChannel channel | |
| FLAG_CLOSED | back to summary |
|---|---|
| private static final int FLAG_CLOSED | |
| FLAG_DELEGATE_SHUTDOWN | back to summary |
|---|---|
| private static final int FLAG_DELEGATE_SHUTDOWN | |
| FLAG_READY | back to summary |
|---|---|
| private static final int FLAG_READY If this stream is ready for a write | |
| ioExecutor | back to summary |
|---|---|
| private final Executor ioExecutor | |
| listener | back to summary |
|---|---|
| private WriteListener listener | |
| state | back to summary |
|---|---|
| private int state | |
| UpgradeServletOutputStream | back to summary |
|---|---|
| protected UpgradeServletOutputStream(final StreamSinkChannel channel, Executor ioExecutor) | |
| 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
| |
| closeBlocking | back to summary |
|---|---|
| pack-priv void closeBlocking() throws IOException | |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Doc from java. Flushes this output stream and forces any buffered output bytes
to be written out. The general contract of If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.
| |
| isReady | back to summary |
|---|---|
| public boolean isReady() Implements abstract jakarta. Doc from jakarta. Returns true if data can be written without blocking else returns false.
If this method returns false and a
| |
| setWriteListener | back to summary |
|---|---|
| public void setWriteListener(final WriteListener writeListener) Implements abstract jakarta. Doc from jakarta. Instructs the
| |
| write | back to summary |
|---|---|
| public void write(final byte[] b) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(final byte[] b, final int off, final int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| write | back to summary |
|---|---|
| public void write(final int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | handleEvent(final StreamSinkChannel
the channel event channel)Implements org. Handle the event on this channel. |
| WriteChannelListener | back to summary |
|---|---|
| private WriteChannelListener() | |
| handleError | back to summary |
|---|---|
| private void handleError(final StreamSinkChannel channel, final IOException e) | |
| handleEvent | back to summary |
|---|---|
| public void handleEvent(final StreamSinkChannel channel) Implements org. Doc from org. Handle the event on this channel.
| |