FileUtilities Class Reference

List of all members.

Static Public Member Functions

static void writeInputStreamToFile (InputStream stream, File file, int totalSize, IProgressMonitor progressMonitor) throws IOException
static void writeInputStreamToOutputStream (InputStream in, OutputStream out, int totalSize, IProgressMonitor progressMonitor) throws IOException
static void writeUrlToFile (URL url, File file, IProgressMonitor progressMonitor) throws IOException


Member Function Documentation

static void writeInputStreamToFile ( InputStream  stream,
File  file,
int  totalSize,
IProgressMonitor  progressMonitor 
) throws IOException [static]

Writes the contents of an InputStream to a specified file.

Parameters:
file to write to
stream to pull data from

static void writeInputStreamToOutputStream ( InputStream  in,
OutputStream  out,
int  totalSize,
IProgressMonitor  progressMonitor 
) throws IOException [static]

Copies the contents of the input stream to the given output stream. Both streams are guaranteed to be closed by the end of this method.

Parameters:
in the input stream to copy from
out the output stream to copy to
Exceptions:
IOException if there is any failure

static void writeUrlToFile ( URL  url,
File  file,
IProgressMonitor  progressMonitor 
) throws IOException [static]

Copies the contents of the given URL to a file.

Parameters:
url the URL to copy from
file the File to write to
Exceptions:
IOException if the copy fails


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:36 2012 for Project Wonder by  doxygen 1.5.8