|
||||||||||
| 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()
|
void |
put(byte[] bytes,
int offset,
int length)
|
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()
Store
cleanup in interface Store
public int get(byte[] bytes,
int offset,
int length)
Storelength 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()
public void put(byte[] bytes,
int offset,
int length)
put in interface Storepublic void seek(long position)
SeekableStoreStore 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 | |||||||||