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.OutputStreamWrap an existing ByteBuffer as OutputStream.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.nio.ByteBufferbufferThe 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 voidwrite(byte[] b, int off, int len)voidwrite(int b)
-