| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| protected InputBuffer | |
| protected static final StringManager |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Overrides java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected. |
| private void | |
| pack-priv void | |
| protected Object | |
| public void | close()
Overrides java. Implements java. Close the stream Since we re-cycle, we can't allow the call to super.close() which would permanently disable us. |
| public boolean | isFinished()
Implements abstract jakarta. Has the end of this InputStream been reached? |
| public boolean | isReady()
Implements abstract jakarta. Can data be read from this InputStream without blocking? |
| public int | read()
Implements abstract java. Reads the next byte of data from the input stream. |
| public int | read(final byte[]
the buffer into which the data is read. b)Overrides java. Reads some number of bytes from the input stream and stores them into
the buffer array |
| public int | read(final byte[]
the buffer into which the data is read. b, final int the start offset in array off, final int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. Reads up to |
| public int | Returns: an integer specifying the actual number of bytes read, or -1 if the end of the stream is reachedthe ByteBuffer into which bytes are to be written. b)Transfers bytes from the buffer to the specified ByteBuffer. |
| public void | setReadListener(ReadListener
The non-blocking IO read listener listener)Implements abstract jakarta. Sets the |
| ib | back to summary |
|---|---|
| protected InputBuffer ib | |
| sm | back to summary |
|---|---|
| protected static final StringManager sm | |
| CoyoteInputStream | back to summary |
|---|---|
| protected CoyoteInputStream(InputBuffer ib) | |
| available | back to summary |
|---|---|
| public int available() throws IOException Overrides java. Doc from java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected. The read might be on the same thread or another thread. A single read or skip of this many bytes will not block, but may read or skip fewer bytes. Note that while some implementations of A subclass's implementation of this method may choose to throw an
| |
| checkNonBlockingRead | back to summary |
|---|---|
| private void checkNonBlockingRead() | |
| 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. Close the stream Since we re-cycle, we can't allow the call to super.close() which would permanently disable us.
| |
| isFinished | back to summary |
|---|---|
| public boolean isFinished() Implements abstract jakarta. Doc from jakarta. Has the end of this InputStream been reached?
| |
| isReady | back to summary |
|---|---|
| public 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
| |
| read | back to summary |
|---|---|
| public 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 int read(final byte[] b) throws IOException Overrides java. Doc from java. Reads some number of bytes from the input stream and stores them into
the buffer array If the length of The first byte read is stored into element
| |
| read | back to summary |
|---|---|
| public int read(final byte[] b, final int off, final 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
| |
| read | back to summary |
|---|---|
| public int read(final ByteBuffer b) throws IOException Transfers bytes from the buffer to the specified ByteBuffer. After the operation the position of the ByteBuffer will be returned to the one before the operation, the limit will be the position incremented by the number of the transferred bytes.
| |
| setReadListener | back to summary |
|---|---|
| public void setReadListener(ReadListener listener) Implements abstract jakarta. Doc from jakarta. Sets the
| |
| Modifier and Type | Field and Description |
|---|---|
| private final InputBuffer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Integer |
| inputBuffer | back to summary |
|---|---|
| private final InputBuffer inputBuffer | |
| PrivilegedAvailable | back to summary |
|---|---|
| pack-priv PrivilegedAvailable(InputBuffer inputBuffer) | |
| run | back to summary |
|---|---|
| public Integer run() throws IOException Implements java. Doc from java. Performs the computation. This method will be called by
| |
| Modifier and Type | Field and Description |
|---|---|
| private final InputBuffer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Void |
| inputBuffer | back to summary |
|---|---|
| private final InputBuffer inputBuffer | |
| PrivilegedClose | back to summary |
|---|---|
| pack-priv PrivilegedClose(InputBuffer inputBuffer) | |
| run | back to summary |
|---|---|
| public Void run() throws IOException Implements java. Doc from java. Performs the computation. This method will be called by
| |
| Modifier and Type | Field and Description |
|---|---|
| private final InputBuffer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Integer |
| inputBuffer | back to summary |
|---|---|
| private final InputBuffer inputBuffer | |
| PrivilegedRead | back to summary |
|---|---|
| pack-priv PrivilegedRead(InputBuffer inputBuffer) | |
| run | back to summary |
|---|---|
| public Integer run() throws IOException Implements java. Doc from java. Performs the computation. This method will be called by
| |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final InputBuffer | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Integer |
| buf | back to summary |
|---|---|
| private final byte[] buf | |
| inputBuffer | back to summary |
|---|---|
| private final InputBuffer inputBuffer | |
| len | back to summary |
|---|---|
| private final int len | |
| off | back to summary |
|---|---|
| private final int off | |
| PrivilegedReadArray | back to summary |
|---|---|
| pack-priv PrivilegedReadArray(InputBuffer inputBuffer, byte[] buf, int off, int len) | |
| run | back to summary |
|---|---|
| public Integer run() throws IOException Implements java. Doc from java. Performs the computation. This method will be called by
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuffer | |
| private final InputBuffer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Integer |
| bb | back to summary |
|---|---|
| private final ByteBuffer bb | |
| inputBuffer | back to summary |
|---|---|
| private final InputBuffer inputBuffer | |
| PrivilegedReadBuffer | back to summary |
|---|---|
| pack-priv PrivilegedReadBuffer(InputBuffer inputBuffer, ByteBuffer bb) | |
| run | back to summary |
|---|---|
| public Integer run() throws IOException Implements java. Doc from java. Performs the computation. This method will be called by
| |