* the name of file to save the URLs to
* @throws IOException
*/
- public void download(String urlstring, String outfile) throws IOException
+ public static void download(String urlstring, String outfile)
+ throws IOException
{
FileOutputStream fos = null;
ReadableByteChannel rbc = null;
}
} catch (IOException e)
{
- System.out
- .println("Exception while closing download file output stream: "
+ System.out.println(
+ "Exception while closing download file output stream: "
+ e.getMessage());
}
try
} catch (IOException e)
{
System.out.println("Exception while closing download channel: "
- + e.getMessage());
+ + e.getMessage());
}
try
{
} catch (IOException e)
{
System.out.println("Exception while deleting download temp file: "
- + e.getMessage());
+ + e.getMessage());
}
}
}