Package org.processmining.log.csv
Interface ICSV
-
- All Known Implementing Classes:
CSVOpenCSVImpl,CSVUnivocityImpl
public interface ICSVWrapper around some CSV parsing library.- Author:
- F. Mannhardt
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ICSVReadercreateReader(java.io.InputStream is, CSVConfig config)Returns a newICSVReaderthat can be used to read data from theInputStreamin CSV format.ICSVWritercreateWriter(java.io.OutputStream os, CSVConfig config)Returns a newICSVWriterthat can be used to write data to a newOutputStreamin CSV format.
-
-
-
Method Detail
-
createWriter
ICSVWriter createWriter(java.io.OutputStream os, CSVConfig config) throws java.io.IOException
Returns a newICSVWriterthat can be used to write data to a newOutputStreamin CSV format. The caller is responsible for callingICSVWriter.close()on the writer.- Parameters:
os-config-- Returns:
- Throws:
java.io.IOException
-
createReader
ICSVReader createReader(java.io.InputStream is, CSVConfig config) throws java.io.IOException
Returns a newICSVReaderthat can be used to read data from theInputStreamin CSV format. The caller is responsible for callingICSVReader.close()on the writer.- Parameters:
os-config-- Returns:
- Throws:
java.io.IOException
-
-