public interface Downloader
Modifier and Type | Method and Description |
---|---|
void |
cleanUpTempFiles()
Cleans every temporal file previously downloaded.
|
File |
downloadFile(URL url,
String name,
ICancellable cancel)
Downloads an URL into a temporary file that is removed the next time the
tempFileManager class is called, which means the next time gvSIG is launched.
|
File |
downloadFile(URL url,
String data,
String name,
ICancellable cancel)
Downloads a URL using the HTTP Post protocol
|
File |
downloadFile(URL url,
String data,
String name,
ICancellable cancel,
int maxbytes) |
void |
removeURL(Object url) |
void |
removeURL(URL url) |
File downloadFile(URL url, String name, ICancellable cancel) throws IOException, ConnectException, UnknownHostException
url
- name
- cancel
- IOException
ConnectException
UnknownHostException
File downloadFile(URL url, String data, String name, ICancellable cancel) throws IOException, ConnectException, UnknownHostException
url
- The server URLdata
- The data to send in the requestname
- A common name for all the retrieved filescancel
- Used to cancel the downloadsIOException
ConnectException
UnknownHostException
File downloadFile(URL url, String data, String name, ICancellable cancel, int maxbytes) throws IOException, ConnectException, UnknownHostException
void removeURL(URL url)
void removeURL(Object url)
void cleanUpTempFiles()