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.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 Modifier and Type Field Description private long
ctx
-
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) long
getBioContext()
(package private) int
gets(byte[] buffer)
Similar to areadLine
method, but matches what OpenSSL expects from aBIO_gets
method.int
read(byte[] buffer)
int
read(byte[] buffer, int offset, int len)
(package private) void
release()
-
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 areadLine
method, but matches what OpenSSL expects from aBIO_gets
method.- Throws:
java.io.IOException
-
read
public int read(byte[] buffer) throws java.io.IOException
- Overrides:
read
in classjava.io.FilterInputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] buffer, int offset, int len) throws java.io.IOException
- Overrides:
read
in classjava.io.FilterInputStream
- Throws:
java.io.IOException
-
-