|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OWLCache
| Method Summary | |
|---|---|
void |
addCachedFile(java.lang.String fileURI,
java.io.File localFile)
Add a local file to be used as a cached copy for the given URI. |
org.xml.sax.InputSource |
getCachedFile(java.lang.String fileURI)
Returns the cached source for the given URI. |
boolean |
isForced()
Returns if the using of cache is forced. |
void |
setForced(boolean b)
Forces the readers to use the cached copies of the files even if the remote file may be available. |
void |
setLocalCacheDirectory(java.lang.String dir)
Sets the cache dir for the inference engine to find the cached files when a file cannot be downparseed from its original URL. |
void |
updateCachedFile(java.net.URI uri)
Attempt to update a cached file from remote site. |
| Method Detail |
|---|
void setForced(boolean b)
b - boolean isForced()
void setLocalCacheDirectory(java.lang.String dir)
dir - sets the local cache directory. if null it forces not to use the cache.
if the given dir or index file inthat dir does not exist then nothing is
doneorg.xml.sax.InputSource getCachedFile(java.lang.String fileURI)
fileURI -
void addCachedFile(java.lang.String fileURI,
java.io.File localFile)
fileURI - URI for the remote filelocalFile - File for the local cached copyvoid updateCachedFile(java.net.URI uri)
WARNING: Default implementation will not do anything when this function is called but this behaviour can be overridden with a new OWLCache implementation that saves the remote file locally and calls the addCachedFile() function so subsequent read operations will use the local file.
uri - update the local cache by using the latest content from uri.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||