Package org.processmining.log.csv
Class CSVFileReferenceUnivocityImpl
- java.lang.Object
-
- org.processmining.log.csv.AbstractCSVFile
-
- org.processmining.log.csv.CSVFileReferenceUnivocityImpl
-
- All Implemented Interfaces:
CSVFile
public final class CSVFileReferenceUnivocityImpl extends AbstractCSVFile
CSVFileimplementation that holds a reference to a CSV file on disk.- Author:
- N. Tax
-
-
Constructor Summary
Constructors Constructor Description CSVFileReferenceUnivocityImpl(java.nio.file.Path file)CSVFileReferenceUnivocityImpl(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
-
-