Package org.conscrypt
Class OpenSSLBIOSource.ByteBufferInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.conscrypt.OpenSSLBIOSource.ByteBufferInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- OpenSSLBIOSource
private static class OpenSSLBIOSource.ByteBufferInputStream extends java.io.InputStream
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.ByteBuffer
source
-
Constructor Summary
Constructors Constructor Description ByteBufferInputStream(java.nio.ByteBuffer source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
int
read()
int
read(byte[] buffer)
int
read(byte[] buffer, int byteOffset, int byteCount)
void
reset()
long
skip(long byteCount)
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException
- Overrides:
available
in classjava.io.InputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] buffer) throws java.io.IOException
- Overrides:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] buffer, int byteOffset, int byteCount) throws java.io.IOException
- Overrides:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
reset
public void reset() throws java.io.IOException
- Overrides:
reset
in classjava.io.InputStream
- Throws:
java.io.IOException
-
skip
public long skip(long byteCount) throws java.io.IOException
- Overrides:
skip
in classjava.io.InputStream
- Throws:
java.io.IOException
-
-