Class GtfsReader
- java.lang.Object
-
- org.onebusaway.csv_entities.CsvEntityReader
-
- org.onebusaway.gtfs.serialization.GtfsReader
-
public class GtfsReader extends org.onebusaway.csv_entities.CsvEntityReader
-
-
Field Summary
Fields Modifier and Type Field Description static StringKEY_CONTEXT
-
Constructor Summary
Constructors Constructor Description GtfsReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAgencyIdMapping(String fromAgencyId, String toAgencyId)protected org.onebusaway.csv_entities.schema.DefaultEntitySchemaFactorycreateEntitySchemaFactory()Protected MethodsList<Agency>getAgencies()protected StringgetAgencyForEntity(Class<?> entityType, String entityId)StringgetDefaultAgencyId()protected ObjectgetEntity(Class<?> entityClass, Serializable id)List<Class<?>>getEntityClasses()GenericMutableDaogetEntityStore()GtfsReaderContextgetGtfsReaderContext()LonggetLastModfiedTime()protected StringgetTranslatedAgencyId(String agencyId)voidreadEntities(Class<?> entityClass, Reader reader)voidrun()voidrun(org.onebusaway.csv_entities.CsvInputSource source)voidsetAgencies(List<Agency> agencies)voidsetDefaultAgencyId(String feedId)voidsetEntityClasses(List<Class<?>> entityClasses)voidsetEntityStore(GenericMutableDao entityStore)voidsetInputLocation(File path)voidsetLastModifiedTime(Long lastModifiedTime)voidsetOverwriteDuplicates(boolean overwriteDuplicates)-
Methods inherited from class org.onebusaway.csv_entities.CsvEntityReader
addEntityHandler, close, createIndividualCsvEntityReader, getContext, getEntitySchemaFactory, getInputSource, injectEntity, openInputStreamForEntityClass, readEntities, readEntities, readEntities, setEntitySchemaFactory, setInputSource, setInternStrings, setTokenizerStrategy, setTrimValues
-
-
-
-
Field Detail
-
KEY_CONTEXT
public static final String KEY_CONTEXT
-
-
Method Detail
-
setInputLocation
public void setInputLocation(File path) throws IOException
- Overrides:
setInputLocationin classorg.onebusaway.csv_entities.CsvEntityReader- Throws:
IOException
-
setLastModifiedTime
public void setLastModifiedTime(Long lastModifiedTime)
-
getLastModfiedTime
public Long getLastModfiedTime()
-
setDefaultAgencyId
public void setDefaultAgencyId(String feedId)
-
getDefaultAgencyId
public String getDefaultAgencyId()
-
getGtfsReaderContext
public GtfsReaderContext getGtfsReaderContext()
-
getEntityStore
public GenericMutableDao getEntityStore()
-
setEntityStore
public void setEntityStore(GenericMutableDao entityStore)
-
setOverwriteDuplicates
public void setOverwriteDuplicates(boolean overwriteDuplicates)
-
readEntities
public void readEntities(Class<?> entityClass, Reader reader) throws IOException, org.onebusaway.csv_entities.exceptions.CsvEntityIOException
- Overrides:
readEntitiesin classorg.onebusaway.csv_entities.CsvEntityReader- Throws:
IOExceptionorg.onebusaway.csv_entities.exceptions.CsvEntityIOException
-
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)
-
-