public abstract class FileDownloader extends javax.swing.SwingWorker<java.lang.Boolean,DownloadItem>
构造器和说明 |
---|
FileDownloader(DownloadItem[] files,
java.lang.String saveDir) |
限定符和类型 | 方法和说明 |
---|---|
protected java.lang.Boolean |
doInBackground() |
protected void |
done() |
long |
getCompleteSize() |
abstract void |
onDownloadFailed()
下载失败
|
abstract void |
onDownloadSuccess()
下载成功
|
void |
setCompleteSize(long completeSize) |
public FileDownloader(DownloadItem[] files, java.lang.String saveDir)
protected java.lang.Boolean doInBackground() throws java.lang.Exception
doInBackground
在类中 javax.swing.SwingWorker<java.lang.Boolean,DownloadItem>
java.lang.Exception
protected void done()
done
在类中 javax.swing.SwingWorker<java.lang.Boolean,DownloadItem>
public abstract void onDownloadSuccess()
public abstract void onDownloadFailed()
public long getCompleteSize()
public void setCompleteSize(long completeSize)