public class DownloadService extends Object implements IDownloadService
| Constructor and Description |
|---|
DownloadService() |
| Modifier and Type | Method and Description |
|---|---|
File |
store(URI uri,
File destinationDirectory)
Opens the resource at uri and copies it into the destinationDirectory.
|
File |
store(URI address,
File destination,
String downloadName)
Opens the resource at uri and copies it into the destinationDirectory.
|
public File store(URI address, File destination, String downloadName) throws ResourceAccessException
IDownloadServicestore in interface IDownloadServiceaddress - The resource address.destination - The directory to copy the resource to.downloadName - The name of the resource, for logging purposes.ResourceAccessException - If file operations fail.public File store(URI uri, File destinationDirectory) throws ResourceAccessException
IDownloadServicestore in interface IDownloadServiceuri - The resource address.destinationDirectory - The directory to copy the resource to.ResourceAccessException - If file operations fail.Copyright © 2018 JULIE Lab, Germany. All rights reserved.