de.lmu.ifi.dbs.elki.persistent
Class ByteBufferOutputStream
java.lang.Object
java.io.OutputStream
de.lmu.ifi.dbs.elki.persistent.ByteBufferOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class ByteBufferOutputStream
- extends OutputStream
Wrap an existing ByteBuffer as OutputStream.
Field Summary |
(package private) ByteBuffer |
buffer
The actual buffer we're using. |
Method Summary |
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
final ByteBuffer buffer
- The actual buffer we're using.
ByteBufferOutputStream
public ByteBufferOutputStream(ByteBuffer buffer)
- Constructor.
- Parameters:
buffer
- ByteBuffer to wrap.
write
public void write(int b)
- Specified by:
write
in class OutputStream
write
public void write(byte[] b,
int off,
int len)
- Overrides:
write
in class OutputStream