Package com.mckoi.database
Class CellBufferOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.ByteArrayOutputStream
-
- com.mckoi.database.CellBufferOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public final class CellBufferOutputStream extends java.io.ByteArrayOutputStream
This is a ByteArrayOutputStream that allows access to the underlying byte array. It can be instantiated, and then used over and over as a temporary buffer between the writeTo methods and the underlying random access file stream.- Author:
- Tobias Downer
-
-
Constructor Summary
Constructors Constructor Description CellBufferOutputStream(int length)
The Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getByteArray()
Returns the underlying stream you should not use the stream while you have a handle on this reference.void
seek(int pointer)
Sets the pointer to specified point in the array.
-