|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.util.cache.FileCacheRaf.Raf
public class FileCacheRaf.Raf
| Method Summary | |
|---|---|
void |
close()
Close the FileCacheable, release all resources. |
java.lang.String |
getLocation()
The location of the FileCacheable, used only for debug and log messages. |
RandomAccessFile |
getRaf()
|
void |
setFileCache(FileCache fileCache)
FileCacheable must store the FileCache and call it on close(): |
boolean |
sync()
Sync() is called when the FileCacheable is found in the cache, before returning the object to the application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String getLocation()
FileCacheable
getLocation in interface FileCacheablepublic RandomAccessFile getRaf()
public void close()
throws java.io.IOException
FileCacheable
close in interface FileCacheablejava.io.IOException
public boolean sync()
throws java.io.IOException
FileCacheable
sync in interface FileCacheablejava.io.IOException - on i/o error.public void setFileCache(FileCache fileCache)
FileCacheable
public synchronized void close() throws java.io.IOException {
if (isClosed) return;
if (cache != null) {
cache.release(this);
} else {
reallyClose();
}
isClosed = true;
setFileCache in interface FileCacheablefileCache - must store this, use it on close as above.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||