public class CSVReader extends IDAREDatasetReader
IS_READY, IS_SET_UP
Constructor and Description |
---|
CSVReader() |
Modifier and Type | Method and Description |
---|---|
boolean |
fileTypeAccepted(File inputfile)
Test, whether the file can potentially be read by this reader.
|
protected String |
getSeparator()
Get the column separator used in this reader
|
IDAREReaderSetupTask |
getSetupTask(File inputfile,
boolean twocolumn)
The Reader should provide a Task that can be used to set up the reader for
future use on the given inputFile.
|
IDAREWorkbook |
readData(File inputfile)
Read an input File and create an IDARE compatible Workbook structure.
|
void |
resetReader()
Reset the reader, clearing any temporary fields.
|
getStatusMessage, reset, setStatusMessage
public IDAREWorkbook readData(File inputfile) throws WrongFormat, IOException
IDAREDatasetReader
readData
in class IDAREDatasetReader
inputfile
- the file to read.WrongFormat
- If the format cannot be read by this Reader, or if the file provided is not the file the reader was set up for.IOException
- If there are problems with the IO of the filepublic boolean fileTypeAccepted(File inputfile)
IDAREDatasetReader
fileTypeAccepted
in class IDAREDatasetReader
inputfile
- The file to checkprotected String getSeparator()
public IDAREReaderSetupTask getSetupTask(File inputfile, boolean twocolumn)
IDAREDatasetReader
getSetupTask
in class IDAREDatasetReader
inputfile
- the input file to generate the setup task. This file can be read to extract information for options.twocolumn
- whether a IDAREWorkbook
with label and id or a set with only an id is requested.Tunable
s, or null if no setup information is necessarypublic void resetReader()
IDAREDatasetReader
resetReader
in class IDAREDatasetReader
Copyright © 2018. All rights reserved.