Class GtfsMultiReaderImpl
- java.lang.Object
-
- org.onebusaway.transit_data_federation.bundle.tasks.GtfsMultiReaderImpl
-
- All Implemented Interfaces:
Runnable
public class GtfsMultiReaderImpl extends Object implements Runnable
Supports reading from multipleGtfsReaderinstances sequentially with respect to GTFS entity classes. That is to say, given three readers A, B, and C, allAgencyentities will be read from A, B, and C in turn, and then allShapePointentities will be read from A, B, and C in turn, and so forth. This sequential reading scheme allows for cases where two separate feeds may have cross-feed references (ex. StopTime => Stop) as facilitated by the use of anEntityReplacementStrategy.- Author:
- bdferris
- See Also:
EntityReplacementStrategy,GtfsReader,GtfsReadingSupport
-
-
Constructor Summary
Constructors Constructor Description GtfsMultiReaderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGtfsReader(org.onebusaway.gtfs.serialization.GtfsReader reader)voidaddGtfsReaderFromInputLocation(File inputLocation)voidrun()voidsetEntityReplacementLogger(EntityReplacementLogger logger)voidsetEntityReplacementStrategy(EntityReplacementStrategy strategy)voidsetStore(org.onebusaway.gtfs.services.GenericMutableDao store)
-
-
-
Method Detail
-
setEntityReplacementLogger
public void setEntityReplacementLogger(EntityReplacementLogger logger)
-
setStore
public void setStore(org.onebusaway.gtfs.services.GenericMutableDao store)
-
setEntityReplacementStrategy
public void setEntityReplacementStrategy(EntityReplacementStrategy strategy)
-
addGtfsReader
public void addGtfsReader(org.onebusaway.gtfs.serialization.GtfsReader reader)
-
addGtfsReaderFromInputLocation
public void addGtfsReaderFromInputLocation(File inputLocation) throws IOException
- Throws:
IOException
-
-