Interface GTFSDataSource
public interface GTFSDataSource
An object which provides methods to load input streams of each of the data files in a GTFS data
source.
- Author:
- Lee A. Christie
-
Method Summary
Modifier and TypeMethodDescriptionagency()Returns an input stream with the contents of the agency.txt data.calendar()Returns an input stream with the contents of the calendar.txt data.Returns an input stream with the contents of the calendar_dates.txt data.static GTFSDataSourceReturns a GTFS data source which reads from a specified directory in the file system.routes()Returns an input stream with the contents of the routes.txt data.stops()Returns an input stream with the contents of the stops.txt data.Returns an input stream with the contents of the stop_times.txt data.trips()Returns an input stream with the contents of the trips.txt data.
-
Method Details
-
agency
Returns an input stream with the contents of the agency.txt data.- Returns:
- input stream, not null
- Throws:
IOException- if the source could not be loaded
-
calendarDates
Returns an input stream with the contents of the calendar_dates.txt data.- Returns:
- input stream, not null
- Throws:
IOException- if the source could not be loaded
-
calendar
Returns an input stream with the contents of the calendar.txt data.- Returns:
- input stream, not null
- Throws:
IOException- if the source could not be loaded
-
routes
Returns an input stream with the contents of the routes.txt data.- Returns:
- input stream, not null
- Throws:
IOException- if the source could not be loaded
-
stopTimes
Returns an input stream with the contents of the stop_times.txt data.- Returns:
- input stream, not null
- Throws:
IOException- if the source could not be loaded
-
stops
Returns an input stream with the contents of the stops.txt data.- Returns:
- input stream, not null
- Throws:
IOException- if the source could not be loaded
-
trips
Returns an input stream with the contents of the trips.txt data.- Returns:
- input stream, not null
- Throws:
IOException- if the source could not be loaded
-
ofFolder
Returns a GTFS data source which reads from a specified directory in the file system.- Returns:
- the GTFS data source
-