|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
java.io.ByteArrayOutputStream
com.mckoi.database.CellBufferOutputStream
public final class CellBufferOutputStream
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.
| Field Summary |
|---|
| Fields inherited from class java.io.ByteArrayOutputStream |
|---|
buf, count |
| Constructor Summary | |
|---|---|
CellBufferOutputStream(int length)
The Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.io.ByteArrayOutputStream |
|---|
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo |
| Methods inherited from class java.io.OutputStream |
|---|
flush, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CellBufferOutputStream(int length)
| Method Detail |
|---|
public byte[] getByteArray()
public void seek(int pointer)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||