public class DownloadWorker
extends javax.swing.SwingWorker<java.lang.Void,java.lang.Void>
Constructor and Description |
---|
DownloadWorker(java.net.URL url,
java.nio.file.Path outputPath)
Create a worker which will download a a file from a given URL to a given
path.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Void |
doInBackground() |
java.io.IOException |
getStoredException()
If an exception was thrown during the download process, this method will
return it.
|
public DownloadWorker(java.net.URL url, java.nio.file.Path outputPath)
url
- the URL from which to download the fileoutputPath
- the path to which to save the fileprotected java.lang.Void doInBackground()
doInBackground
in class javax.swing.SwingWorker<java.lang.Void,java.lang.Void>
public java.io.IOException getStoredException()