org.onebusaway.csv_entities
Class CsvEntityWriter

java.lang.Object
  extended by org.onebusaway.csv_entities.CsvEntityWriter
All Implemented Interfaces:
EntityHandler

public class CsvEntityWriter
extends Object
implements EntityHandler


Constructor Summary
CsvEntityWriter()
           
 
Method Summary
 void close()
           
 void excludeOptionalAndMissingFields(Class<?> entityType, Iterable<Object> entities)
           
 void flush()
           
 EntitySchemaFactory getEntitySchemaFactory()
           
 void handleEntity(Object entity)
           
 void setEntitySchemaFactory(EntitySchemaFactory entitySchemaFactory)
           
 void setOutputLocation(File path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CsvEntityWriter

public CsvEntityWriter()
Method Detail

getEntitySchemaFactory

public EntitySchemaFactory getEntitySchemaFactory()

setEntitySchemaFactory

public void setEntitySchemaFactory(EntitySchemaFactory entitySchemaFactory)

setOutputLocation

public void setOutputLocation(File path)

excludeOptionalAndMissingFields

public void excludeOptionalAndMissingFields(Class<?> entityType,
                                            Iterable<Object> entities)

handleEntity

public void handleEntity(Object entity)
Specified by:
handleEntity in interface EntityHandler

flush

public void flush()
           throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException


Copyright © 2012 OneBusAway. All Rights Reserved.