public final class CSVFileReferenceOpenCSVImpl extends AbstractCSVFile
CSVFile
implementation that holds a reference to a CSV file on disk.
The CSVFileReferenceUnivocityImpl
is recommended!Constructor and Description |
---|
CSVFileReferenceOpenCSVImpl(java.nio.file.Path file) |
CSVFileReferenceOpenCSVImpl(java.nio.file.Path file,
java.lang.String filename,
long fileSizeInBytes)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ICSVReader |
createReader(CSVConfig config)
Returns a new
ICSVReader that can be used to read through the
input stream. |
ICSV |
getCSV() |
java.lang.String[] |
readHeader(CSVConfig importConfig)
Returns the first row of the CSV file.
|
getFile, getFilename, getInputStream
public CSVFileReferenceOpenCSVImpl(java.nio.file.Path file)
@Deprecated public CSVFileReferenceOpenCSVImpl(java.nio.file.Path file, java.lang.String filename, long fileSizeInBytes)
public java.lang.String[] readHeader(CSVConfig importConfig) throws java.io.IOException
CSVFile
java.io.IOException
public ICSVReader createReader(CSVConfig config) throws java.io.IOException
CSVFile
ICSVReader
that can be used to read through the
input stream. The caller is responsible for calling
ICSVReader.close()
on the reader.java.io.IOException