class ChangesetContentDownloadTask.DownloadTask extends AbstractChangesetDownloadTask.RunnableDownloadTask
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.Integer> |
toDownload
the list of changeset ids to download
|
downloadedChangesets, lastException, reader
progressMonitor
Constructor and Description |
---|
DownloadTask(java.awt.Component parent,
java.util.Collection<java.lang.Integer> ids) |
Modifier and Type | Method and Description |
---|---|
protected void |
downloadChangeset(int changesetId)
Downloads the changeset with id
changesetId (only "header" information, no content) |
protected void |
finish()
Finish up the data work.
|
protected void |
realRun()
Called in the worker thread to do the actual work.
|
cancel, rememberLastException, updateChangesets
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, run
private final java.util.List<java.lang.Integer> toDownload
DownloadTask(java.awt.Component parent, java.util.Collection<java.lang.Integer> ids)
protected void downloadChangeset(int changesetId) throws OsmTransferException
changesetId
(only "header" information, no content)changesetId
- the changeset idOsmTransferException
- if something went wrongprotected void realRun() throws org.xml.sax.SAXException, java.io.IOException, OsmTransferException
PleaseWaitRunnable
realRun
in class PleaseWaitRunnable
org.xml.sax.SAXException
- if a SAX error occursjava.io.IOException
- if an I/O error occursOsmTransferException
- if a communication error with the OSM server occursprotected void finish()
PleaseWaitRunnable
finish
in class PleaseWaitRunnable