public interface Downloader
Modifier and Type | Method and Description |
---|---|
void |
cleanUpTempFiles()
Cleans every temporal file previously downloaded.
|
java.io.File |
downloadFile(java.net.URL url,
java.lang.String method,
ContentType contentType,
java.lang.String data,
java.lang.String name,
ICancellable cancel) |
java.io.File |
downloadFile(java.net.URL url,
java.lang.String method,
ContentType contentType,
java.lang.String data,
java.lang.String name,
ICancellable cancel,
int maxbytes) |
java.io.File |
downloadFile(java.net.URL url,
java.lang.String method,
ContentType contentType,
java.lang.String data,
java.lang.String name,
ICancellable cancel,
int maxbytes,
boolean useCache) |
java.io.File |
downloadFile(java.net.URL url,
java.lang.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.
|
java.io.File |
downloadFile(java.net.URL url,
java.lang.String data,
java.lang.String name,
ICancellable cancel)
Downloads a URL using the HTTP Post protocol
|
java.io.File |
downloadFile(java.net.URL url,
java.lang.String data,
java.lang.String name,
ICancellable cancel,
int maxbytes) |
void |
removeURL(java.lang.Object url) |
void |
removeURL(java.net.URL url) |
java.io.File downloadFile(java.net.URL url, java.lang.String name, ICancellable cancel) throws java.io.IOException, java.net.ConnectException, java.net.UnknownHostException
url
- name
- cancel
- java.io.IOException
java.net.ConnectException
java.net.UnknownHostException
java.io.File downloadFile(java.net.URL url, java.lang.String data, java.lang.String name, ICancellable cancel) throws java.io.IOException, java.net.ConnectException, java.net.UnknownHostException
url
- The server URLdata
- The data to send in the requestname
- A common name for all the retrieved filescancel
- Used to cancel the downloadsjava.io.IOException
java.net.ConnectException
java.net.UnknownHostException
java.io.File downloadFile(java.net.URL url, java.lang.String data, java.lang.String name, ICancellable cancel, int maxbytes) throws java.io.IOException, java.net.ConnectException, java.net.UnknownHostException
java.io.IOException
java.net.ConnectException
java.net.UnknownHostException
java.io.File downloadFile(java.net.URL url, java.lang.String method, ContentType contentType, java.lang.String data, java.lang.String name, ICancellable cancel) throws java.io.IOException, java.net.ConnectException, java.net.UnknownHostException
java.io.IOException
java.net.ConnectException
java.net.UnknownHostException
java.io.File downloadFile(java.net.URL url, java.lang.String method, ContentType contentType, java.lang.String data, java.lang.String name, ICancellable cancel, int maxbytes) throws java.io.IOException, java.net.ConnectException, java.net.UnknownHostException
java.io.IOException
java.net.ConnectException
java.net.UnknownHostException
java.io.File downloadFile(java.net.URL url, java.lang.String method, ContentType contentType, java.lang.String data, java.lang.String name, ICancellable cancel, int maxbytes, boolean useCache) throws java.io.IOException, java.net.ConnectException, java.net.UnknownHostException
java.io.IOException
java.net.ConnectException
java.net.UnknownHostException
void removeURL(java.net.URL url)
void removeURL(java.lang.Object url)
void cleanUpTempFiles()