public interface FileCacheable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the FileCacheable, release all resources.
|
String |
getLocation()
The location of the FileCacheable.
|
void |
setFileCache(FileCache fileCache)
If the FileCache is set, the FileCacheable object must store it and call FileCache.release() on FileCacheable.close():
|
boolean |
sync()
Sync() is called when the FileCacheable is found in the cache, before returning the object to the
application.
|
String getLocation()
void close()
throws IOException
IOException - on io errorboolean sync()
throws IOException
IOException - on i/o error.void setFileCache(FileCache fileCache)
public synchronized void close() throws java.io.IOException {
if (cache != null) {
cache.release(this);
} else {
reallyClose();
}
fileCache - must store this, use it on close as above.Copyright © 1999-2012 UCAR/Unidata. All Rights Reserved.