|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gc.iotools.stream.store.MemoryStore
public class MemoryStore
TODO: more efficient memory usage.
| Constructor Summary | |
|---|---|
MemoryStore()
|
|
| Method Summary | |
|---|---|
void |
cleanup()
Cleans up the Store. |
int |
get(byte[] bytes,
int offset,
int length)
gets length bytes from the store. |
long |
getPosition()
Getter for the field position. |
void |
put(byte[] bytes,
int offset,
int length)
put |
void |
seek(long position)
Reposition this Store on a previously read position. |
String |
toString()
Provides a String representation of the state of the Store for debugging purposes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MemoryStore()
| Method Detail |
|---|
public void cleanup()
cleanup in interface Store
public int get(byte[] bytes,
int offset,
int length)
length bytes from the store.
get in interface Storebytes - array where to put the data in.offset - offset in the array to start put the data.length - length of the bytes got from the store.
public long getPosition()
Getter for the field position.
public void put(byte[] bytes,
int offset,
int length)
put
put in interface Storebytes - an array of byte.offset - a int.length - a int.public void seek(long position)
Store on a previously read position.
seek in interface SeekableStoreposition - position to read the data from.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||