| Modifier and Type | Class and Description |
|---|---|
static class |
DownloadBuilder.ByteArrayDownloadBuilder |
static class |
DownloadBuilder.FileDownloadBuilder |
static class |
DownloadBuilder.InputStreamDownloadBuilder |
static class |
DownloadBuilder.ZipDownloadBuilder |
| Constructor and Description |
|---|
DownloadBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static DownloadBuilder.ByteArrayDownloadBuilder |
of(byte[] input)
Creates an instance for build a
ByteArrayDownload. |
static DownloadBuilder.FileDownloadBuilder |
of(File file)
Creates an instance for build a
FileDownload. |
static DownloadBuilder.InputStreamDownloadBuilder |
of(InputStream input)
Creates an instance for build a
InputStreamDownload. |
static DownloadBuilder.ZipDownloadBuilder |
of(List<Path> files)
Creates an instance for build a
ZipDownload. |
public static DownloadBuilder.FileDownloadBuilder of(File file)
FileDownload.file - The input file.NullPointerException - If the file argument is nullpublic static DownloadBuilder.InputStreamDownloadBuilder of(InputStream input)
InputStreamDownload.input - The input InputStream to process.NullPointerException - If the input argument is nullpublic static DownloadBuilder.ByteArrayDownloadBuilder of(byte[] input)
ByteArrayDownload.input - The input byte array.NullPointerException - If the input argument is nullpublic static DownloadBuilder.ZipDownloadBuilder of(List<Path> files)
ZipDownload.files - List of input filesNullPointerException - If the input argument is nullCopyright © 2014 Caelum. All rights reserved.