public class WebUtilities
extends java.lang.Object
| Constructor and Description |
|---|
WebUtilities() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
downloadAndReplaceFile(java.io.File destinationFile,
java.net.URL downloadURL)
Download the file from the specified URL to the specified destination, replacing the file if it already exists.
|
boolean |
downloadAndReplaceFile(java.lang.String fileDestination,
java.net.URL downloadURL)
Download the file from the specified URL to the specified destination, replacing the file if it already exists.
|
boolean |
downloadFile(java.io.File destinationFile,
java.net.URL downloadURL)
Download the file from the specified URL to the specified destination.
|
boolean |
downloadFile(java.lang.String fileDestination,
java.net.URL downloadURL)
Download the file from the specified URL to the specified destination.
|
public boolean downloadAndReplaceFile(java.io.File destinationFile,
java.net.URL downloadURL)
destinationFile - File. The file to store the web-resource in. Examples:downloadURL - URL. The URL to the file you want to download.public boolean downloadAndReplaceFile(java.lang.String fileDestination,
java.net.URL downloadURL)
fileDestination - String. The file to store the web-resource in. Examples:downloadURL - URL. The URL to the file you want to download.public boolean downloadFile(java.io.File destinationFile,
java.net.URL downloadURL)
destinationFile - File. The file to store the web-resource in. Examples:downloadURL - URL. The URL to the file you want to download.public boolean downloadFile(java.lang.String fileDestination,
java.net.URL downloadURL)
fileDestination - String. The destination where the file should be stored. Must include the filename as well.
Examples:downloadURL - URL. The URL to the file you want to download.