| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| private volatile boolean | |
| private volatile ReadListener | |
| private static final Log | |
| private final UpgradeProcessorBase | |
| private volatile Boolean | |
| private static final StringManager | |
| private final SocketWrapperBase | |
| private final UpgradeInfo |
| Access | Constructor and Description |
|---|---|
| public | UpgradeServletInputStream(UpgradeProcessorBase processor, SocketWrapperBase<?> socketWrapper, UpgradeInfo upgradeInfo)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. Closes this input stream and releases any system resources associated with the stream. |
| pack-priv final boolean | |
| public final boolean | isFinished()
Implements abstract jakarta. Has the end of this InputStream been reached? |
| public final boolean | isReady()
Implements abstract jakarta. Can data be read from this InputStream without blocking? |
| pack-priv final void | |
| private void | |
| private void | |
| public final int | read()
Implements abstract java. Reads the next byte of data from the input stream. |
| public final int | read(byte[]
the buffer into which the data is read. b, int the start offset in array off, int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. Reads up to |
| private int | |
| public final int | readLine(byte[]
an array of bytes into which data is read b, int an integer specifying the character at which this method begins reading off, int an integer specifying the maximum number of bytes to read len)Overrides jakarta. Reads the input stream, one line at a time. |
| public final void | setReadListener(ReadListener
The non-blocking IO read listener listener)Implements abstract jakarta. Sets the |
| closed | back to summary |
|---|---|
| private volatile boolean closed | |
| eof | back to summary |
|---|---|
| private volatile boolean eof | |
| listener | back to summary |
|---|---|
| private volatile ReadListener listener | |
| log | back to summary |
|---|---|
| private static final Log log | |
| processor | back to summary |
|---|---|
| private final UpgradeProcessorBase processor | |
| ready | back to summary |
|---|---|
| private volatile Boolean ready | |
| 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 | |
| UpgradeServletInputStream | back to summary |
|---|---|
| public UpgradeServletInputStream(UpgradeProcessorBase processor, SocketWrapperBase<?> socketWrapper, UpgradeInfo upgradeInfo) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| isClosed | back to summary |
|---|---|
| pack-priv final boolean isClosed() | |
| isFinished | back to summary |
|---|---|
| public final boolean isFinished() Implements abstract jakarta. Doc from jakarta. Has the end of this InputStream been reached?
| |
| isReady | back to summary |
|---|---|
| public final boolean isReady() Implements abstract jakarta. Doc from jakarta. Can data be read from this InputStream without blocking? Returns If this method is called and returns false, the
container will invoke
| |
| onDataAvailable | back to summary |
|---|---|
| pack-priv final void onDataAvailable() | |
| onError | back to summary |
|---|---|
| private void onError(Throwable t) | |
| preReadChecks | back to summary |
|---|---|
| private void preReadChecks() | |
| read | back to summary |
|---|---|
| public final int read() throws IOException Implements abstract java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public final int read(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If The first byte read is stored into element In every case, elements
| |
| readInternal | back to summary |
|---|---|
| private int readInternal() throws IOException | |
| readLine | back to summary |
|---|---|
| public final int readLine(byte[] b, int off, int len) throws IOException Overrides jakarta. Doc from jakarta. Reads the input stream, one line at a time. Starting at an offset, reads bytes into an array, until it reads a certain number of bytes or reaches a newline character, which it reads into the array as well. This method returns -1 if it reaches the end of the input stream before reading the maximum number of bytes.
| |
| setReadListener | back to summary |
|---|---|
| public final void setReadListener(ReadListener listener) Implements abstract jakarta. Doc from jakarta. Sets the
| |