Package org.goplanit.gtfs.reader
Class GtfsFileReaderRoutes
- java.lang.Object
-
- org.goplanit.gtfs.reader.GtfsFileReaderBase
-
- org.goplanit.gtfs.reader.GtfsFileReaderRoutes
-
public class GtfsFileReaderRoutes extends GtfsFileReaderBase
A GTFS file reader for parsing GTFS routes. When Column type configuration is set to PLANIT_REQUIRED_COLUMNS we exclude the following columns:- ROUTE_URL
- ROUTE_COLOR
- ROUTE_TEXT_COLOR
- ROUTE_SORT_ORDER
- CONTINUOUS_PICKUP
- CONTINUOUS_DROP_OFF
- any nonGTFS specification column
- Author:
- markr
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GtfsFileReaderRoutes(URL gtfsLocation, GtfsFileConditions filePresenceCondition)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initialiseColumnConfiguration(GtfsColumnType columnType)
Let concrete implementation determine the initially excluded columns (if any) based on the provided column type configuration passed in.-
Methods inherited from class org.goplanit.gtfs.reader.GtfsFileReaderBase
addHandler, getFileScheme, getSettings, read, reset, setPresenceCondition
-
-
-
-
Constructor Detail
-
GtfsFileReaderRoutes
protected GtfsFileReaderRoutes(URL gtfsLocation, GtfsFileConditions filePresenceCondition)
Constructor- Parameters:
gtfsLocation
- to extract file to parse from (dir or zip file)filePresenceCondition
- on being present
-
-
Method Detail
-
initialiseColumnConfiguration
protected void initialiseColumnConfiguration(GtfsColumnType columnType)
Let concrete implementation determine the initially excluded columns (if any) based on the provided column type configuration passed in. Note that we log a severe when the chosen column type is not matched, i.e., concrete classes should only call this implementation once they have exhausted their specific column type configurations and not call this beforehand.- Overrides:
initialiseColumnConfiguration
in classGtfsFileReaderBase
- Parameters:
columnType
- configuration to apply for initial column exclusions (if any)
-
-