FileDocCategorySizeDatePackage
SSLStreamedInput.javaAPI DocAndroid 1.5 API1861Wed May 06 22:41:06 BST 2009org.apache.harmony.xnet.provider.jsse

SSLStreamedInput

public class SSLStreamedInput extends SSLInputStream
This class acts like a filtered input stream: it takes the bytes from another InputStream.

Fields Summary
private InputStream
in
Constructors Summary
public SSLStreamedInput(InputStream in)

        this.in = in;
    
Methods Summary
public intavailable()

        return in.available();
    
public intread()
Read an opaque value from the stream.

return
the value read from the underlying stream.
throws
IOException if the data could not be read from the underlying stream
throws
org.apache.harmony.xnet.provider.jsse.EndOfSourceException if the end of the underlying stream has been reached.

        int res = in.read();
        if (res < 0) {
            throw new EndOfSourceException();
        }
        return res;