|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jurvis.util.JvFileCache
public class JvFileCache
Maintains a cache of files on disk.
| Field Summary | |
|---|---|
protected File |
cacheDir
The local directory holding the cached files. |
| Constructor Summary | |
|---|---|
JvFileCache(String dir)
Construct a new JvFileCache using the given directory
as the local cache directory. |
|
| Method Summary | |
|---|---|
File |
get(URL url,
JvDataTransferModel transferModel)
Get the file at the given URL. |
static void |
main(String[] args)
|
void |
setCacheDir(String dirname)
Set the name of the directory to store the cached files |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected File cacheDir
| Constructor Detail |
|---|
public JvFileCache(String dir)
throws IOException
JvFileCache using the given directory
as the local cache directory.
dir - the name of the directory to store the cached files
IOException| Method Detail |
|---|
public void setCacheDir(String dirname)
throws IOException
dirname - the name of the cache directory
IOException
public File get(URL url,
JvDataTransferModel transferModel)
throws IOException
url - the URL of the desired filetransferModel - model containing the state of the transfer
IOException
public static void main(String[] args)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||