public class CsvDataRecordSource extends LineTextDataRecordSource
Copyright 2001-2007 Partner Software, Inc.
IterableInput.StatuscurrentLine, currentLineNumbercurrentValues, fieldNames, verbose| Constructor and Description |
|---|
CsvDataRecordSource() |
CsvDataRecordSource(Cog state) |
CsvDataRecordSource(java.lang.String path) |
CsvDataRecordSource(VfsFile file) |
CsvDataRecordSource(VfsFile file,
java.util.List<java.lang.String> fieldNames) |
CsvDataRecordSource(VfsFile file,
java.lang.String... fieldNames) |
| Modifier and Type | Method and Description |
|---|---|
DataRecordSource |
copy()
Makes a copy of this DataRecordSource, that you can iterate over
separately.
|
void |
openImp()
Subclass implementation of guts of open() method.
|
boolean |
parseLine(java.lang.String line)
Subclasses must implement this.
|
closeImp, fetchImp, getFile, open, readLinefetch, getCurrentValues, getFetched, getFieldNames, isVerbose, setVerbose, toCogclose, getException, getStatus, isFetchValid, iteratorpublic CsvDataRecordSource()
public CsvDataRecordSource(java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic CsvDataRecordSource(VfsFile file)
public CsvDataRecordSource(VfsFile file, java.util.List<java.lang.String> fieldNames)
public CsvDataRecordSource(VfsFile file, java.lang.String... fieldNames)
public CsvDataRecordSource(Cog state)
public void openImp()
throws java.lang.Exception
AbstractIterableInputSubclasses must implement this to do the actual work required by open(). Feel free to throw exceptions; these are caught inside the open() itself and applied to the exception variable. Thus, you can focus on the actual task instead of paperwork.
openImp in class LineTextDataRecordSourcejava.lang.Exceptionpublic boolean parseLine(java.lang.String line)
throws java.lang.Exception
LineTextDataRecordSourceparseLine in class LineTextDataRecordSourcejava.lang.Exceptionpublic DataRecordSource copy()
DataRecordSourcecopy in class DataRecordSource