ProGAL.io
Class WebIOToolbox

java.lang.Object
  extended by ProGAL.io.WebIOToolbox

public class WebIOToolbox
extends java.lang.Object

A wrapper class for static web input/output methods.

Author:
R. Fonseca

Constructor Summary
WebIOToolbox()
           
 
Method Summary
static java.lang.String downloadFile(java.lang.String urlString)
          Downloads an online document to a temporary file and returns its path.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebIOToolbox

public WebIOToolbox()
Method Detail

downloadFile

public static java.lang.String downloadFile(java.lang.String urlString)
Downloads an online document to a temporary file and returns its path. While the file is being downloaded a dialog box is shown indicating the URL. When the thread exits the temporary file is removed. If anything goes wrong a stack-trace is printed and a RuntimeException is thrown.