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