public abstract class CsvWriterBase
extends java.lang.Object
Constructor and Description |
---|
CsvWriterBase(java.lang.String fileName,
boolean append)
Creates file writer and writes the header.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the file.
|
public CsvWriterBase(java.lang.String fileName, boolean append)
To write a file one uses a subclass that specifies how to write the header and a line to the file for each GTFS object. One simply constructs the subclass (which creates the file and writes the header), then calls the subclass write(GtfsObject gtfsObject) method for each object, and the close() to finish things up.
fileName
- append
- Set to true if should append data to CSV file if it already
exists. If false then will write new file along with the
header.