| org.apache.harmony.xnet.provider.jsse.SSLInputStream org.apache.harmony.xnet.provider.jsse.SSLBufferedInput
SSLBufferedInput | public class SSLBufferedInput extends SSLInputStream (Code) | | This is a wrapper input stream for ByteBuffer data source.
Among with the read functionality it provides info
about number of cunsumed bytes from the source ByteBuffer.
The source ByteBuffer object can be reseted.
So one instance of this wrapper can be reused for several
ByteBuffer data sources.
|
Method Summary | |
public int | available() Returns the number of bytes available for reading. | protected int | consumed() Returns the number of consumed bytes. | public int | read() Reads the following byte value. | protected void | setSourceBuffer(ByteBuffer in) |
SSLBufferedInput | protected SSLBufferedInput()(Code) | | Constructor
|
available | public int available() throws IOException(Code) | | Returns the number of bytes available for reading.
|
consumed | protected int consumed()(Code) | | Returns the number of consumed bytes.
|
read | public int read() throws IOException(Code) | | Reads the following byte value. If there are no bytes in the source
buffer, method throws java.nio.BufferUnderflowException.
|
setSourceBuffer | protected void setSourceBuffer(ByteBuffer in)(Code) | | Sets the buffer as a data source
|
|
|