|
|||||||||
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.XmlReader
public class XmlReader
An OSM data source reading from an xml file. The entire contents of the file are read.
Constructor Summary | |
---|---|
XmlReader(java.io.File file,
boolean enableDateParsing,
CompressionMethod compressionMethod)
Creates a new instance. |
Method Summary | |
---|---|
void |
run()
Reads all data from the file and send it to the sink. |
void |
setSink(Sink sink)
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 XmlReader(java.io.File file, boolean enableDateParsing, CompressionMethod compressionMethod)
file
- The file to read.enableDateParsing
- If true, dates will be parsed from xml data, else the current
date will be used thus saving parsing time.compressionMethod
- Specifies the compression method to employ.Method Detail |
---|
public void setSink(Sink sink)
setSink
in interface Source
sink
- The sink for receiving all produced data.public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |