Package org.conscrypt
Class ConscryptFileDescriptorSocket.SSLInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.conscrypt.ConscryptFileDescriptorSocket.SSLInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Enclosing class:
- ConscryptFileDescriptorSocket
private class ConscryptFileDescriptorSocket.SSLInputStream extends java.io.InputStreamThis inner class provides input data stream functionality for the OpenSSL native implementation. It is used to read data received via SSL protocol.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ObjectreadLockOpenSSL only lets one thread read at a time, so this is used to make sure we serialize callers of SSL_read.
-
Constructor Summary
Constructors Constructor Description SSLInputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()(package private) voidawaitPendingOps()intread()Reads one byte.intread(byte[] buf, int offset, int byteCount)Method acts as described in spec for superclass.
-
-
-
Method Detail
-
read
public int read() throws java.io.IOExceptionReads one byte. If there is no data in the underlying buffer, this operation can block until the data will be available.- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read(byte[] buf, int offset, int byteCount) throws java.io.IOExceptionMethod acts as described in spec for superclass.- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException- See Also:
InputStream.read(byte[],int,int)
-
available
public int available()
- Overrides:
availablein classjava.io.InputStream
-
awaitPendingOps
void awaitPendingOps()
-
-