| java.io.BufferedInputStream com.sun.portal.rproxy.connectionhandler.CSBufferedInputStream
CSBufferedInputStream | public class CSBufferedInputStream extends BufferedInputStream (Code) | | This class extends the BufferedInputStream. It adds a member reference to the
socket that is associated with the input stream.
Members _socket - the socket associated with this input stream
author: Kevin Hartig See Also: CachedSocket |
Method Summary | |
public int | getLength() | public int | getPos() Get the current position in the buffer. | public CachedSocket | getSocket() Get the socket reference associated with this buffered input stream. | public synchronized int | read() Check if trying to read passed the expected number of bytes in the
stream. | public synchronized int | read(byte b, int off, int len) Check if trying to read passed the expected number of bytes in the
stream. | public synchronized void | readToEnd() | public void | setClosed() Set the _keepalive flag to false. | public void | setKeepAlive() Set the _keepAlive flag to true. | public void | setLength(int length) Set the length (in bytes) of the associated input stream. | public void | setSocket(CachedSocket socket) Set the socket reference to be associated with this input stream. | public synchronized long | skip(long n) |
getLength | public int getLength()(Code) | | Get the current expected number of bytes in the input stream
The number of bytes expected to be in the input stream. |
getPos | public int getPos()(Code) | | Get the current position in the buffer.
Returns the current position in the buffer. |
getSocket | public CachedSocket getSocket()(Code) | | Get the socket reference associated with this buffered input stream.
a reference to the CachedSocket associated with this inputstream. |
read | public synchronized int read()(Code) | | Check if trying to read passed the expected number of bytes in the
stream. otherwise just read from the stream normally.
|
read | public synchronized int read(byte b, int off, int len)(Code) | | Check if trying to read passed the expected number of bytes in the
stream. otherwise just read from the stream normally.
|
readToEnd | public synchronized void readToEnd()(Code) | | |
setClosed | public void setClosed()(Code) | | Set the _keepalive flag to false. This indicates that the socket
associated with this stream needs to be closed after reading the buffer.
|
setKeepAlive | public void setKeepAlive()(Code) | | Set the _keepAlive flag to true.
|
setLength | public void setLength(int length)(Code) | | Set the length (in bytes) of the associated input stream.
Parameters: length - the number of bytes expected to be in the stream. |
setSocket | public void setSocket(CachedSocket socket)(Code) | | Set the socket reference to be associated with this input stream.
|
skip | public synchronized long skip(long n)(Code) | | |
|
|