Package it.unipd.dei.eis.data.codecs
Class CsvDecoder
- java.lang.Object
-
- it.unipd.dei.eis.data.codecs.CsvDecoder
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.commons.csv.CSVFormatCSV_FORMATThe CSV format object used to parse the CSV file.
-
Constructor Summary
Constructors Constructor Description CsvDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.apache.commons.csv.CSVRecord>decode(String data, Object... args)The decode method is used to decode the CSV file.
-
-
-
Method Detail
-
decode
public List<org.apache.commons.csv.CSVRecord> decode(String data, Object... args) throws IOException
The decode method is used to decode the CSV file.- Specified by:
decodein interfaceIDecoder<List<org.apache.commons.csv.CSVRecord>>- Parameters:
data- the CSV fileargs- the arguments- Returns:
- the list of CSV Records
- Throws:
IOException- if an I/O error occurs
-
-