Package org.conscrypt
Class ConscryptFileDescriptorSocket.SSLInputStream
java.lang.Object
java.io.InputStream
org.conscrypt.ConscryptFileDescriptorSocket.SSLInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
ConscryptFileDescriptorSocket
This 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 -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
readLock
OpenSSL only lets one thread read at a time, so this is used to make sure we serialize callers of SSL_read. Thread is already expected to have completed handshaking.
-
-
Constructor Details
-
SSLInputStream
SSLInputStream()
-
-
Method Details
-
read
Reads one byte. If there is no data in the underlying buffer, this operation can block until the data will be available.- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
Method acts as described in spec for superclass.- Overrides:
read
in classInputStream
- Throws:
IOException
- See Also:
-
available
public int available()- Overrides:
available
in classInputStream
-
awaitPendingOps
void awaitPendingOps()
-