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.ByteBuffersource
-
Constructor Summary
Constructors Constructor Description ByteBufferInputStream(java.nio.ByteBuffer source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()intread()intread(byte[] buffer)intread(byte[] buffer, int byteOffset, int byteCount)voidreset()longskip(long byteCount)
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException- Overrides:
availablein classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read(byte[] buffer) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read(byte[] buffer, int byteOffset, int byteCount) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
reset
public void reset() throws java.io.IOException- Overrides:
resetin classjava.io.InputStream- Throws:
java.io.IOException
-
skip
public long skip(long byteCount) throws java.io.IOException- Overrides:
skipin classjava.io.InputStream- Throws:
java.io.IOException
-
-