public class CSVReader extends FormatReader<CSVHeader>
| Constructor and Description |
|---|
CSVReader(java.lang.String filename)
Constructor with default encoding
|
CSVReader(java.lang.String filename,
java.nio.charset.Charset charset)
Constructor with specific encoding
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.lang.Object[] |
nextRecord(int skipThisNumberOfLines)
This method skips some lines and then reads a record in the file;
|
createFormatReader, getField, getFieldCount, getFilename, getHeader, getRecordCount, isSystemResource, nextRecord, openStream, setFormatHeaderpublic CSVReader(java.lang.String filename)
throws java.io.IOException
filename - the file to readjava.io.IOExceptionpublic CSVReader(java.lang.String filename,
java.nio.charset.Charset charset)
throws java.io.IOException
filename - the file to readcharset - the encodingjava.io.IOExceptionpublic java.lang.Object[] nextRecord(int skipThisNumberOfLines)
throws java.io.IOException
FormatReadernextRecord in class FormatReader<CSVHeader>skipThisNumberOfLines - the number of lines to skip before reading the observationjava.io.IOExceptionpublic void close()