public class OsmServerObjectReader extends OsmServerReader
| Modifier and Type | Field and Description |
|---|---|
private boolean |
full
true if a full download is required, i.e.
|
private PrimitiveId |
id
the id of the object to download
|
private int |
version
the specific version number, if required (incompatible with full), or -1 else
|
gpxParsedProperlyactiveConnection, cancel, oauthParameters| Modifier | Constructor and Description |
|---|---|
|
OsmServerObjectReader(long id,
OsmPrimitiveType type,
boolean full)
Creates a new server object reader for a given id and a primitive type.
|
protected |
OsmServerObjectReader(long id,
OsmPrimitiveType type,
boolean full,
int version) |
|
OsmServerObjectReader(long id,
OsmPrimitiveType type,
int version)
Creates a new server object reader for a given id and a primitive type.
|
|
OsmServerObjectReader(PrimitiveId id,
boolean full)
Creates a new server object reader for an object with the given
id |
protected |
OsmServerObjectReader(PrimitiveId id,
boolean full,
int version) |
|
OsmServerObjectReader(PrimitiveId id,
int version)
Creates a new server object reader for an object with the given
id |
| Modifier and Type | Method and Description |
|---|---|
DataSet |
parseOsm(ProgressMonitor progressMonitor)
Downloads and parses the data.
|
getBaseUrl, getInputStream, getInputStream, getInputStreamRaw, getInputStreamRaw, getInputStreamRaw, isDoAuthenticate, isGpxParsedProperly, parseNotes, parseOsmBzip2, parseOsmChange, parseOsmChangeBzip2, parseOsmChangeGzip, parseOsmGzip, parseOsmZip, parseRawGps, parseRawGpsBzip2, parseRawNotes, parseRawNotesBzip2, setDoAuthenticateaddAuth, addBasicAuthorizationHeader, addOAuthAuthorizationHeader, cancel, isCanceledprivate PrimitiveId id
private boolean full
private int version
public OsmServerObjectReader(long id, OsmPrimitiveType type, boolean full) throws java.lang.IllegalArgumentException
id - the object id. > 0 required.type - the type. Must not be null.full - true, if a full download is requested (i.e. a download including
immediate children); false, otherwisejava.lang.IllegalArgumentException - thrown if id <= 0java.lang.IllegalArgumentException - thrown if type is nullpublic OsmServerObjectReader(long id, OsmPrimitiveType type, int version) throws java.lang.IllegalArgumentException
id - the object id. > 0 required.type - the type. Must not be null.version - the specific version number, if required; -1, otherwisejava.lang.IllegalArgumentException - thrown if id <= 0java.lang.IllegalArgumentException - thrown if type is nullprotected OsmServerObjectReader(long id, OsmPrimitiveType type, boolean full, int version) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic OsmServerObjectReader(PrimitiveId id, boolean full)
idid - the object id. Must not be null. Unique id > 0 required.full - true, if a full download is requested (i.e. a download including
immediate children); false, otherwisejava.lang.IllegalArgumentException - thrown if id is nulljava.lang.IllegalArgumentException - thrown if id.getUniqueId() <= 0public OsmServerObjectReader(PrimitiveId id, int version)
idid - the object id. Must not be null. Unique id > 0 required.version - the specific version number, if required; -1, otherwisejava.lang.IllegalArgumentException - thrown if id is nulljava.lang.IllegalArgumentException - thrown if id.getUniqueId() <= 0protected OsmServerObjectReader(PrimitiveId id, boolean full, int version)
public DataSet parseOsm(ProgressMonitor progressMonitor) throws OsmTransferException
parseOsm in class OsmServerReaderprogressMonitor - the progress monitor. Set to NullProgressMonitor.INSTANCE if nullOsmTransferException