Class GtfsMultiReaderImpl

  • All Implemented Interfaces:
    Runnable

    public class GtfsMultiReaderImpl
    extends Object
    implements Runnable
    Supports reading from multiple GtfsReader instances sequentially with respect to GTFS entity classes. That is to say, given three readers A, B, and C, all Agency entities will be read from A, B, and C in turn, and then all ShapePoint entities 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 an EntityReplacementStrategy.
    Author:
    bdferris
    See Also:
    EntityReplacementStrategy, GtfsReader, GtfsReadingSupport
    • Constructor Detail

      • GtfsMultiReaderImpl

        public GtfsMultiReaderImpl()
    • Method Detail

      • setStore

        public void setStore​(org.onebusaway.gtfs.services.GenericMutableDao store)
      • addGtfsReader

        public void addGtfsReader​(org.onebusaway.gtfs.serialization.GtfsReader reader)
      • addGtfsReaderFromInputLocation

        public void addGtfsReaderFromInputLocation​(File inputLocation)
                                            throws IOException
        Throws:
        IOException
      • run

        public void run()
        Specified by:
        run in interface Runnable