Class CachedWebDownload
java.lang.Object
de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.layout_control.kegg.CachedWebDownload
public class CachedWebDownload extends Object
-
Constructor Summary
Constructors Constructor Description CachedWebDownload()
-
Method Summary
Modifier and Type Method Description static URL
getCacheURL(URL url, String fileID, String filetype)
If the parameter specifies a remote file, it is downloaded and saved at the hard disc drive.static String
getFileIdFromUrl(String url)
static boolean
isCacheURL(URL url)
-
Constructor Details
-
CachedWebDownload
public CachedWebDownload()
-
-
Method Details
-
getCacheURL
If the parameter specifies a remote file, it is downloaded and saved at the hard disc drive. A URL to the downloaded file will be returned. In case of error (saving of file or download not possible), a error message is added to the error log and the given parameter is returned unchanged. If the caching file is existant, the file is not downloaded again.- Parameters:
url
- The (remote) URL to the file.- Returns:
- If possible, a local URL to a downloaded caching file.
-
isCacheURL
-
getFileIdFromUrl
-