Package org.conscrypt
Class OpenSSLBIOInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.conscrypt.OpenSSLBIOInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Provides an interface to OpenSSL's BIO system directly from a Java
InputStream. It allows an OpenSSL API to read directly from something more
flexible interface than a byte array.
-
Field Summary
FieldsFields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
ctx
private long ctx
-
-
Constructor Details
-
OpenSSLBIOInputStream
OpenSSLBIOInputStream(InputStream is, boolean isFinite)
-
-
Method Details
-
getBioContext
long getBioContext() -
release
void release() -
gets
Similar to areadLinemethod, but matches what OpenSSL expects from aBIO_getsmethod.- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-