public class DownloadWorker extends SwingWorker<Void,Void>
SwingWorker.StateValue
Constructor and Description |
---|
DownloadWorker(URL url,
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 Void |
doInBackground() |
IOException |
getStoredException()
If an exception was thrown during the download process, this method will
return it.
|
addPropertyChangeListener, cancel, done, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
protected Void doInBackground()
doInBackground
in class SwingWorker<Void,Void>
public IOException getStoredException()
Copyright © 2022. All rights reserved.