public class EDownloader extends Object
| Constructor and Description |
|---|
EDownloader() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeInputStream(InputStream input)
Closes InputStream
|
static void |
closeOutputStream(OutputStream output)
Closes OutputStream
|
static void |
copyContent(InputStream sourceStream,
File destination) |
static void |
downloadFile(EDownloadProps props)
This method should be called with EDownloadProps object as an argument.
|
static long |
readAndWrite(InputStream input,
OutputStream output)
It takes an active InputStream and an active Output Stream to read from and write to
|
static void |
saveURLContentToFile(URL downloadSource,
File destinationFile) |
public static void downloadFile(EDownloadProps props) throws MalformedURLException, IOException
props - MalformedURLExceptionIOExceptionpublic static void saveURLContentToFile(URL downloadSource, File destinationFile) throws IOException
downloadSource - destinationFile - IOExceptionpublic static void copyContent(InputStream sourceStream, File destination) throws IOException
sourceStream - destination - IOExceptionpublic static long readAndWrite(InputStream input, OutputStream output) throws IOException
input - output - IOExceptionpublic static void closeInputStream(InputStream input)
input - public static void closeOutputStream(OutputStream output)
output - Copyright © 2017. All rights reserved.