Package elki.utilities.io
Class ByteBufferOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- elki.utilities.io.ByteBufferOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class ByteBufferOutputStream extends java.io.OutputStream
Wrap an existing ByteBuffer as OutputStream.- 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 ByteBufferOutputStream(java.nio.ByteBuffer buffer)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(byte[] b, int off, int len)
void
write(int b)
-