public class FileUtilities extends Object
| Constructor and Description |
|---|
FileUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static void |
writeInputStreamToFile(InputStream stream,
File file,
int totalSize,
IWOInstallerProgressMonitor progressMonitor)
Writes the contents of an InputStream to a specified file.
|
static void |
writeInputStreamToOutputStream(InputStream in,
OutputStream out,
int totalSize,
IWOInstallerProgressMonitor progressMonitor)
Copies the contents of the input stream to the given output stream.
|
static void |
writeUrlToFile(URL url,
File file,
IWOInstallerProgressMonitor progressMonitor)
Copies the contents of the given URL to a file.
|
public static void writeUrlToFile(URL url, File file, IWOInstallerProgressMonitor progressMonitor) throws IOException
url - the URL to copy fromfile - the File to write toIOException - if the copy failspublic static void writeInputStreamToFile(InputStream stream, File file, int totalSize, IWOInstallerProgressMonitor progressMonitor) throws IOException
file - to write tostream - to pull data fromIOExceptionpublic static void writeInputStreamToOutputStream(InputStream in, OutputStream out, int totalSize, IWOInstallerProgressMonitor progressMonitor) throws IOException
in - the input stream to copy fromout - the output stream to copy toIOException - if there is any failureCopyright © 2002 – 2020 Project Wonder.