|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrj.tools.ccscrape.URLCache
public class URLCache
Caches the file pointed to by an URL on the local file system. If the URL points to the local file system, bypasses the caching and passes the URL through.
Constructor Summary | |
---|---|
URLCache(java.net.URL url)
Creates a new instance with the url of the file to cache |
Method Summary | |
---|---|
java.io.File |
getFile()
Returns a 'local' File |
void |
release()
Releases the file from the URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLCache(java.net.URL url)
url
- to file which can be remote or local; must not be nullMethod Detail |
---|
public java.io.File getFile() throws java.io.IOException
java.io.IOException
public void release()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |