public final class SSLSocketInputStream extends InputStream
Modifier and Type | Field and Description |
---|---|
protected org.apache.harmony.xnet.provider.jsse.SSLSocketInputStream.Adapter |
dataPoint |
Modifier | Constructor and Description |
---|---|
protected |
SSLSocketInputStream(SSLSocketImpl owner)
Creates the application data input stream for specified socket.
|
Modifier and Type | Method and Description |
---|---|
int |
available()
Returns the number of bytes available for reading without blocking.
|
void |
close()
Closes the stream
|
int |
read()
Reads one byte.
|
int |
read(byte[] b,
int off,
int len)
Reads at most
length bytes from this stream and stores them in
the byte array b starting at offset . |
protected void |
setEnd()
Tells to the stream that the end of the income data has
been reached.
|
mark, markSupported, read, reset, skip
protected org.apache.harmony.xnet.provider.jsse.SSLSocketInputStream.Adapter dataPoint
protected SSLSocketInputStream(SSLSocketImpl owner)
owner
- the socket which will provide this input stream
to client applications.protected void setEnd()
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
InputStream
length
bytes from this stream and stores them in
the byte array b
starting at offset
.read
in class InputStream
b
- the byte array in which to store the bytes read.off
- the initial position in buffer
to store the bytes read
from this stream.len
- the maximum number of bytes to store in b
.IOException
- if the stream is closed or another IOException occurs.