org.onebusaway.gtfs.serialization
Class GtfsReader
java.lang.Object
org.onebusaway.csv_entities.CsvEntityReader
org.onebusaway.gtfs.serialization.GtfsReader
public class GtfsReader
- extends org.onebusaway.csv_entities.CsvEntityReader
| Methods inherited from class org.onebusaway.csv_entities.CsvEntityReader |
addEntityHandler, close, getContext, getInputSource, openInputStreamForEntityClass, readEntities, readEntities, readEntities, readEntities, setEntitySchemaFactory, setInputLocation, setInputSource, setInternStrings, setTokenizerStrategy, setTrimValues |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_CONTEXT
public static final String KEY_CONTEXT
GtfsReader
public GtfsReader()
getAgencies
public List<Agency> getAgencies()
setAgencies
public void setAgencies(List<Agency> agencies)
setDefaultAgencyId
public void setDefaultAgencyId(String feedId)
addAgencyIdMapping
public void addAgencyIdMapping(String fromAgencyId,
String toAgencyId)
getEntityStore
public GenericMutableDao getEntityStore()
setEntityStore
public void setEntityStore(GenericMutableDao entityStore)
getEntityClasses
public List<Class<?>> getEntityClasses()
setEntityClasses
public void setEntityClasses(List<Class<?>> entityClasses)
run
public void run()
throws IOException
- Throws:
IOException
run
public void run(org.onebusaway.csv_entities.CsvInputSource source)
throws IOException
- Throws:
IOException
createEntitySchemaFactory
protected org.onebusaway.csv_entities.schema.DefaultEntitySchemaFactory createEntitySchemaFactory()
- Protected Methods
getEntity
protected Object getEntity(Class<?> entityClass,
Serializable id)
getDefaultAgencyId
protected String getDefaultAgencyId()
getTranslatedAgencyId
protected String getTranslatedAgencyId(String agencyId)
getAgencyForEntity
protected String getAgencyForEntity(Class<?> entityType,
String entityId)
Copyright © 2011 OneBusAway. All Rights Reserved.