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, setFormatHeader
public CSVReader(java.lang.String filename) throws java.io.IOException
filename
- the file to readjava.io.IOException
public CSVReader(java.lang.String filename, java.nio.charset.Charset charset) throws java.io.IOException
filename
- the file to readcharset
- the encodingjava.io.IOException
public java.lang.Object[] nextRecord(int skipThisNumberOfLines) throws java.io.IOException
FormatReader
nextRecord
in class FormatReader<CSVHeader>
skipThisNumberOfLines
- the number of lines to skip before reading the observationjava.io.IOException
public void close()