|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.xml.v0_5.XmlDownloader
public class XmlDownloader
* An OSM data source reading from an osm-xml file from the * OpenStreetMap-server. * * @author Marcus Wolschon
| Constructor Summary | |
|---|---|
XmlDownloader(double left,
double right,
double top,
double bottom,
java.lang.String baseUrl)
Creates a new instance with the specified geographical coordinates. |
|
| Method Summary | |
|---|---|
void |
run()
* Reads all data from the server and send it to the Sink. |
void |
setSink(Sink aSink)
* Sets the osm sink to send data to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlDownloader(double left,
double right,
double top,
double bottom,
java.lang.String baseUrl)
left - The longitude marking the left edge of the bounding box.right - The longitude marking the right edge of the bounding box.top - The latitude marking the top edge of the bounding box.bottom - The latitude marking the bottom edge of the bounding box.baseUrl - (optional) The base url of the server (eg.
http://www.openstreetmap.org/api/0.5).| Method Detail |
|---|
public void setSink(Sink aSink)
setSink in interface SourceaSink - The sink for receiving all produced data.public void run()
Sink.
run in interface java.lang.Runnable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||