Package org.conscrypt
Class ConscryptEngineSocket.SSLInputStream
java.lang.Object
java.io.InputStream
org.conscrypt.ConscryptEngineSocket.SSLInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
ConscryptEngineSocket
Unwrap bytes read from the underlying socket.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AllocatedBuffer
private final ByteBuffer
private final ByteBuffer
private final int
private final Object
private final byte[]
private InputStream
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
void
close()
private void
init()
private boolean
private boolean
private int
processDataFromSocket
(byte[] b, int off, int len) int
read()
int
read
(byte[] b) int
read
(byte[] b, int off, int len) private int
private int
readUntilDataAvailable
(byte[] b, int off, int len) (package private) void
release()
private void
Processes a renegotiation received from the remote peer.Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
readLock
-
singleByte
private final byte[] singleByte -
fromEngine
-
fromSocket
-
fromSocketArrayOffset
private final int fromSocketArrayOffset -
allocatedBuffer
-
socketInputStream
-
-
Constructor Details
-
SSLInputStream
SSLInputStream()
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
release
void release() -
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
isHandshaking
-
readUntilDataAvailable
- Throws:
IOException
-
processDataFromSocket
- Throws:
IOException
-
isHandshakeFinished
private boolean isHandshakeFinished() -
renegotiate
Processes a renegotiation received from the remote peer.- Throws:
IOException
-
init
- Throws:
IOException
-
readFromSocket
- Throws:
IOException
-