|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gc.iotools.stream.store.ThresholdStore
public class ThresholdStore
| Constructor Summary | |
|---|---|
ThresholdStore(int treshold)
|
|
ThresholdStore(int treshold,
File file)
|
|
| Method Summary | |
|---|---|
void |
cleanup()
Cleans up the Store. |
protected void |
finalize()
Clean up the temporary files eventually open. |
int |
get(byte[] bytes,
int offset,
int length)
|
long |
getSize()
|
int |
getTreshold()
|
void |
put(byte[] bytes,
int offset,
int length)
|
void |
seek(long position)
Reposition this Store on a previously read position. |
void |
setPosition(long 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, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ThresholdStore(int treshold)
public ThresholdStore(int treshold,
File file)
| Method Detail |
|---|
public void cleanup()
Store
cleanup in interface Store
public int get(byte[] bytes,
int offset,
int length)
throws IOException
get in interface StoreIOExceptionpublic long getSize()
public int getTreshold()
public void put(byte[] bytes,
int offset,
int length)
throws IOException
put in interface StoreIOException
public void seek(long position)
throws IOException
Store on a previously read position.
seek in interface SeekableStoreposition - position to read the data from.
IOException - is thrown if some (disk) error happens or a seek over the
buffer length is requested.public void setPosition(long position)
public String toString()
toString in class Object
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||