Package zombie.util
Class ByteBufferBackedInputStream
java.lang.Object
java.io.InputStream
zombie.util.ByteBufferBackedInputStream
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class ByteBufferBackedInputStream
extends java.io.InputStream
-
Constructor Summary
Constructors Constructor Description ByteBufferBackedInputStream(java.nio.ByteBuffer byteBuffer) -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ByteBufferBackedInputStream
public ByteBufferBackedInputStream(java.nio.ByteBuffer byteBuffer)
-
-
Method Details
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read(byte[] byteArray, int int1, int int2) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-