Package com.activeviam.io
Class ByteBufferInputStream
java.lang.Object
java.io.InputStream
com.activeviam.io.ByteBufferInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Implementation of an
InputStream pulling its data from a ByteBuffer.- Author:
- ActiveViam
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ByteBufferInputStream
Constructor.- Parameters:
buf- the byte buffer to use
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-