public final class CacheFactory extends java.lang.Object implements ICacheItem
Constructor and Description |
---|
CacheFactory(java.lang.String url) |
CacheFactory(java.net.URL url)
Implemented for compatibility with previous implementation
|
CacheFactory(java.net.URL url,
boolean appendText) |
Modifier and Type | Method and Description |
---|---|
ICacheItem |
create(java.lang.String source) |
java.lang.String |
getCachedItemFolder() |
java.lang.String |
getCachedItemPath() |
IStartable |
getStartable() |
boolean |
isAvailable() |
public CacheFactory(java.lang.String url) throws java.net.MalformedURLException
url
- java.net.MalformedURLException
public CacheFactory(java.net.URL url) throws java.net.MalformedURLException
url
- to download fromjava.net.MalformedURLException
public CacheFactory(java.net.URL url, boolean appendText) throws java.net.MalformedURLException
url
- to download fromappendText
- on truejava.net.MalformedURLException
public java.lang.String getCachedItemPath()
getCachedItemPath
in interface ICacheItem
public IStartable getStartable()
getStartable
in interface ICacheItem
public java.lang.String getCachedItemFolder()
getCachedItemFolder
in interface ICacheItem
public boolean isAvailable()
isAvailable
in interface ICacheItem
public ICacheItem create(java.lang.String source) throws java.net.MalformedURLException
source
- address of cache itemjava.net.MalformedURLException
11-Februar-2016 16:52 Deutsches Elektronen-Synchrotron DESY in der Helmholtz-Gemeinschaft