| java.lang.Object java.io.InputStream com.sun.midp.ssl.In
Method Summary | |
public int | available() Returns the number of bytes that can be read (or skipped over) from
this input stream without blocking by the next caller of a method for
this input stream. | public synchronized void | close() Close the stream connection. | public int | read() Reads a byte from this input stream. | public int | read(byte[] b) Reads up to b.length bytes of data from this
input stream into the byte array b . | public int | read(byte[] b, int off, int len) Reads up to len bytes of data from this input stream
into b starting at offset off . |
In | In(Record r, SSLStreamConnection c)(Code) | | Creates a new In object.
Parameters: r - Record layer object from which input bytes are read Parameters: c - SSLStreamConnection object this In object is a part of |
available | public int available() throws IOException(Code) | | Returns the number of bytes that can be read (or skipped over) from
this input stream without blocking by the next caller of a method for
this input stream. The next caller might be the same thread or
another thread.
the number of bytes that can be read from this input streamwithout blocking. exception: IOException - if an I/O error occurs. |
close | public synchronized void close() throws IOException(Code) | | Close the stream connection.
exception: IOException - is thrown, if an I/O error occurs whileshutting down the connection |
read | public int read() throws IOException(Code) | | Reads a byte from this input stream. The method blocks if no
input is available.
the next byte of data, or -1 if end of stream is reached exception: IOException - if an I/O error occurs |
read | public int read(byte[] b) throws IOException(Code) | | Reads up to b.length bytes of data from this
input stream into the byte array b . Blocks until
some input is available. This is equivalent to
read(b, 0, b.length) .
Parameters: b - the buffer into which data is read the actual number of bytes read into the buffer, or -1if there is no more data and the end of input stream has beenreached exception: IOException - if an I/O error occurs |
read | public int read(byte[] b, int off, int len) throws IOException(Code) | | Reads up to len bytes of data from this input stream
into b starting at offset off .
Parameters: b - buffer into which data is read Parameters: off - starting offset where data is read Parameters: len - maximum number of bytes to be readreturn the actual number of bytes read into the buffer, or -1if there is no more data and the end of input stream has beenreached number of bytes read exception: IOException - if an I/O error occurs |
|
|