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 Type
    Method
    Description
    Returns an input stream with the contents of the agency.txt data.
    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.
    ofFolder(File directory)
    Returns a GTFS data source which reads from a specified directory in the file system.
    Returns an input stream with the contents of the routes.txt data.
    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.
    Returns an input stream with the contents of the trips.txt data.
  • Method Details

    • agency

      InputStream agency() throws IOException
      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

      InputStream calendarDates() throws IOException
      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

      InputStream calendar() throws IOException
      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

      InputStream routes() throws IOException
      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

      InputStream stopTimes() throws IOException
      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

      InputStream stops() throws IOException
      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

      InputStream trips() throws IOException
      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

      static GTFSDataSource ofFolder(File directory)
      Returns a GTFS data source which reads from a specified directory in the file system.
      Returns:
      the GTFS data source