| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| private volatile boolean | |
| private volatile WriteListener | |
| private static final Log | |
| private final UpgradeProcessorBase | |
| private boolean | |
| private final Object | |
| private static final StringManager | |
| private final SocketWrapperBase | |
| private final UpgradeInfo | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public | UpgradeServletOutputStream(UpgradeProcessorBase processor, SocketWrapperBase<?> socketWrapper, UpgradeInfo upgradeInfo)
|
| 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. |
| public void | flush()
Overrides java. Implements java. Flushes this output stream and forces any buffered output bytes to be written out. |
| private void | |
| pack-priv final boolean | |
| public final boolean | isReady()
Implements abstract jakarta. Checks if a non-blocking write will succeed. |
| private void | |
| pack-priv final void | |
| private void | |
| public final void | setWriteListener(WriteListener
The non-blocking IO write listener listener)Implements abstract jakarta. Sets the |
| public void | write(int
the b)byte.Implements abstract java. Writes the specified byte to this output stream. |
| 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 |
| private void |
| closed | back to summary |
|---|---|
| private volatile boolean closed | |
| flushing | back to summary |
|---|---|
| private volatile boolean flushing | |
| listener | back to summary |
|---|---|
| private volatile WriteListener listener | |
| log | back to summary |
|---|---|
| private static final Log log | |
| processor | back to summary |
|---|---|
| private final UpgradeProcessorBase processor | |
| registered | back to summary |
|---|---|
| private boolean registered | |
| registeredLock | back to summary |
|---|---|
| private final Object registeredLock | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| socketWrapper | back to summary |
|---|---|
| private final SocketWrapperBase<?> socketWrapper | |
| upgradeInfo | back to summary |
|---|---|
| private final UpgradeInfo upgradeInfo | |
| writeLock | back to summary |
|---|---|
| private final Object writeLock | |
| UpgradeServletOutputStream | back to summary |
|---|---|
| public UpgradeServletOutputStream(UpgradeProcessorBase processor, SocketWrapperBase<?> socketWrapper, UpgradeInfo upgradeInfo) | |
| 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. 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.
| |
| flushInternal | back to summary |
|---|---|
| private void flushInternal(boolean block, boolean updateFlushing) throws IOException | |
| isClosed | back to summary |
|---|---|
| pack-priv final boolean isClosed() | |
| isReady | back to summary |
|---|---|
| public final boolean isReady() Implements abstract jakarta. Doc from jakarta. Checks if a non-blocking write will succeed. If this returns
| |
| onError | back to summary |
|---|---|
| private void onError(Throwable t) | |
| onWritePossible | back to summary |
|---|---|
| pack-priv final void onWritePossible() | |
| preWriteChecks | back to summary |
|---|---|
| private void preWriteChecks() | |
| setWriteListener | back to summary |
|---|---|
| public final void setWriteListener(WriteListener listener) Implements abstract jakarta. Doc from jakarta. Sets the
| |
| write | back to summary |
|---|---|
| public void write(int b) 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, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| writeInternal | back to summary |
|---|---|
| private void writeInternal(byte[] b, int off, int len) throws IOException Must hold writeLock to call this method. | |