|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Downloader
Implementations provide a general mechanism for downloading files.
| Method Summary | |
|---|---|
java.io.InputStream |
downloadAndStream(java.net.URL url,
SettingsController settings,
ProgressIndicator indicator)
Gets a stream associated with the content at the given URL. |
java.io.File |
downloadFully(java.net.URL url,
SettingsController settings,
ProgressIndicator indicator)
Downloads the content at the given URL to a temporary file and returns a handle to that file. |
| Method Detail |
|---|
@Nullable
java.io.InputStream downloadAndStream(@NonNull
java.net.URL url,
@Nullable
SettingsController settings,
@NonNull
ProgressIndicator indicator)
throws java.io.IOException
url - The URL to fetch.settings - Settings (e.g. proxy configuration) for the connection.indicator - Facility for showing download progress and logging.
null if the
download is cancelled.
java.io.IOException
@Nullable
java.io.File downloadFully(@NonNull
java.net.URL url,
@Nullable
SettingsController settings,
@NonNull
ProgressIndicator indicator)
throws java.io.IOException
url - The URL to fetch.settings - Settings (e.g. proxy configuration) for the connection.indicator - Facility for showing download progress and logging.
null if the download is cancelled.
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||