org.onebusaway.gtfs.csv
Class CsvEntityReader
java.lang.Object
org.onebusaway.gtfs.csv.CsvEntityReader
- Direct Known Subclasses:
- GtfsReader
public class CsvEntityReader
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_CONTEXT
public static final java.lang.String KEY_CONTEXT
CsvEntityReader
public CsvEntityReader()
setEntitySchemaFactory
public void setEntitySchemaFactory(EntitySchemaFactory entitySchemaFactory)
getInputSource
public CsvInputSource getInputSource()
setInputSource
public void setInputSource(CsvInputSource source)
setInputLocation
public void setInputLocation(java.io.File path)
throws java.io.IOException
- Throws:
java.io.IOException
setTokenizerStrategy
public void setTokenizerStrategy(TokenizerStrategy tokenizerStrategy)
setTrimValues
public void setTrimValues(boolean trimValues)
addEntityHandler
public void addEntityHandler(EntityHandler handler)
getContext
public CsvEntityContext getContext()
readEntities
public void readEntities(java.lang.Class<?> entityClass)
throws java.io.IOException
- Throws:
java.io.IOException
readEntities
public void readEntities(java.lang.Class<?> entityClass,
CsvInputSource source)
throws java.io.IOException
- Throws:
java.io.IOException
readEntities
public void readEntities(java.lang.Class<?> entityClass,
java.io.InputStream is)
throws java.io.IOException,
CsvEntityIOException
- Throws:
java.io.IOException
CsvEntityIOException
readEntities
public void readEntities(java.lang.Class<?> entityClass,
java.io.Reader reader)
throws java.io.IOException,
CsvEntityIOException
- Throws:
java.io.IOException
CsvEntityIOException
openInputStreamForEntityClass
public java.io.InputStream openInputStreamForEntityClass(CsvInputSource source,
java.lang.Class<?> entityClass)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2010 OneBusAway. All Rights Reserved.