Package elki.utilities.io
Class ByteBufferInputStream
- java.lang.Object
-
- java.io.InputStream
-
- elki.utilities.io.ByteBufferInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class ByteBufferInputStream extends java.io.InputStream
Wrap an existing ByteBuffer as InputStream.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.nio.ByteBuffer
buffer
The actual buffer we're using.
-
Constructor Summary
Constructors Constructor Description ByteBufferInputStream(java.nio.ByteBuffer buffer)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read()
int
read(byte[] b, int off, int len)
-