public class MemoryStore extends Object implements SeekableStore
Constructor and Description |
---|
MemoryStore() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void cleanup()
public int get(byte[] bytes, int offset, int length)
length
bytes from the store.public long getPosition()
Getter for the field position
.
public void put(byte[] bytes, int offset, int length)
put
public void seek(long position)
Store
on a previously read position.seek
in interface SeekableStore
position
- position to read the data from.Copyright © 2008–2016. All rights reserved.