Package org.processmining.log.csv
Class CSVFileReferenceOpenCSVImpl
- java.lang.Object
-
- org.processmining.log.csv.AbstractCSVFile
-
- org.processmining.log.csv.CSVFileReferenceOpenCSVImpl
-
- All Implemented Interfaces:
CSVFile
public final class CSVFileReferenceOpenCSVImpl extends AbstractCSVFile
CSVFileimplementation that holds a reference to a CSV file on disk. TheCSVFileReferenceUnivocityImplis recommended!- Author:
- F. Mannhardt
-
-
Constructor Summary
Constructors Constructor Description CSVFileReferenceOpenCSVImpl(java.nio.file.Path file)CSVFileReferenceOpenCSVImpl(java.nio.file.Path file, java.lang.String filename, long fileSizeInBytes)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ICSVReadercreateReader(CSVConfig config)Returns a newICSVReaderthat can be used to read through the input stream.ICSVgetCSV()java.lang.String[]readHeader(CSVConfig importConfig)Returns the first row of the CSV file.-
Methods inherited from class org.processmining.log.csv.AbstractCSVFile
getFile, getFilename, getInputStream
-
-
-
-
Method Detail
-
readHeader
public java.lang.String[] readHeader(CSVConfig importConfig) throws java.io.IOException
Description copied from interface:CSVFileReturns the first row of the CSV file.- Returns:
- Throws:
java.io.IOException
-
createReader
public ICSVReader createReader(CSVConfig config) throws java.io.IOException
Description copied from interface:CSVFileReturns a newICSVReaderthat can be used to read through the input stream. The caller is responsible for callingICSVReader.close()on the reader.- Returns:
- Throws:
java.io.IOException
-
-