org.osm2world.core.osm.creation
Class OsmosisReader

Object
  extended by OsmosisReader
All Implemented Interfaces:
OSMDataReader

public class OsmosisReader
extends Object
implements OSMDataReader

DataSource providing information from a single .osm file. The file is read during the constructor call, there will be no updates when the file is changed later. This class uses osmosis to read the file.


Constructor Summary
OsmosisReader(File file)
           
 
Method Summary
static RunnableSource createReaderForFile(File file)
           
 OSMData getData()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsmosisReader

public OsmosisReader(File file)
              throws IOException
Throws:
IOException
Method Detail

createReaderForFile

public static final RunnableSource createReaderForFile(File file)
                                                throws FileNotFoundException
Throws:
FileNotFoundException

getData

public OSMData getData()
Specified by:
getData in interface OSMDataReader