Package org.conscrypt
Class OpenSSLBIOInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.conscrypt.OpenSSLBIOInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class OpenSSLBIOInputStream extends FilterInputStream
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
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description OpenSSLBIOInputStream(InputStream is, boolean isFinite)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetBioContext()intgets(byte[] buffer)Similar to areadLinemethod, but matches what OpenSSL expects from aBIO_getsmethod.voidrelease()-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, reset, skip
-
Methods inherited from class java.io.InputStream
read
-
-
-
-
Constructor Detail
-
OpenSSLBIOInputStream
public OpenSSLBIOInputStream(InputStream is, boolean isFinite)
-
-
Method Detail
-
getBioContext
public long getBioContext()
-
release
public void release()
-
gets
public int gets(byte[] buffer) throws IOExceptionSimilar to areadLinemethod, but matches what OpenSSL expects from aBIO_getsmethod.- Throws:
IOException
-
-