public class OsmServerChangesetReader extends OsmServerReader
OsmPrimitive
from the OSM API server.gpxParsedProperly
activeConnection, cancel, oauthParameters
Constructor and Description |
---|
OsmServerChangesetReader()
Constructs a new
OsmServerChangesetReader . |
Modifier and Type | Method and Description |
---|---|
ChangesetDataSet |
downloadChangeset(int id,
ProgressMonitor monitor)
Downloads the content of a changeset
|
protected InputStream |
getChangesetInputStream(long id,
boolean includeDiscussion,
ProgressMonitor monitor) |
DataSet |
parseOsm(ProgressMonitor progressMonitor)
don't use - not implemented!
|
List<Changeset> |
queryChangesets(ChangesetQuery query,
ProgressMonitor monitor)
Queries a list
|
Changeset |
readChangeset(long id,
boolean includeDiscussion,
ProgressMonitor monitor)
Reads the changeset with id
id from the server. |
List<Changeset> |
readChangesets(Collection<Integer> ids,
boolean includeDiscussion,
ProgressMonitor monitor)
Reads the changesets with id
ids from the server. |
getBaseUrl, getInputStream, getInputStream, getInputStreamRaw, getInputStreamRaw, getInputStreamRaw, isDoAuthenticate, isGpxParsedProperly, parseNotes, parseOsmBzip2, parseOsmChange, parseOsmChangeBzip2, parseOsmChangeGzip, parseOsmGzip, parseOsmZip, parseRawGps, parseRawGpsBzip2, parseRawNotes, parseRawNotesBzip2, setDoAuthenticate
addAuth, addBasicAuthorizationHeader, addOAuthAuthorizationHeader, cancel, isCanceled
public OsmServerChangesetReader()
OsmServerChangesetReader
.public DataSet parseOsm(ProgressMonitor progressMonitor) throws OsmTransferException
parseOsm
in class OsmServerReader
progressMonitor
- The progress monitorOsmTransferException
- if any error occursprotected final InputStream getChangesetInputStream(long id, boolean includeDiscussion, ProgressMonitor monitor) throws OsmTransferException
OsmTransferException
public List<Changeset> queryChangesets(ChangesetQuery query, ProgressMonitor monitor) throws OsmTransferException
query
- the query specification. Must not be null.monitor
- a progress monitor. Set to NullProgressMonitor.INSTANCE
if nullIllegalArgumentException
- thrown if query is nullOsmTransferException
- thrown if something goes wrong wpublic Changeset readChangeset(long id, boolean includeDiscussion, ProgressMonitor monitor) throws OsmTransferException
id
from the server.id
- the changeset id. id > 0 required.includeDiscussion
- determines if discussion comments must be downloaded or notmonitor
- the progress monitor. Set to NullProgressMonitor.INSTANCE
if nullOsmTransferException
- thrown if something goes wrongIllegalArgumentException
- if id <= 0public List<Changeset> readChangesets(Collection<Integer> ids, boolean includeDiscussion, ProgressMonitor monitor) throws OsmTransferException
ids
from the server.ids
- the list of ids. Ignored if null. Only load changesets for ids > 0.includeDiscussion
- determines if discussion comments must be downloaded or notmonitor
- the progress monitor. Set to NullProgressMonitor.INSTANCE
if nullOsmTransferException
- thrown if something goes wrongIllegalArgumentException
- if id <= 0public ChangesetDataSet downloadChangeset(int id, ProgressMonitor monitor) throws IllegalArgumentException, OsmTransferException
id
- the changeset id. > 0 required.monitor
- the progress monitor. NullProgressMonitor.INSTANCE
assumed if null.IllegalArgumentException
- thrown if id <= 0OsmTransferException
- thrown if something went wrong