Class CSVFileReferenceUnivocityImpl

  • All Implemented Interfaces:
    CSVFile

    public final class CSVFileReferenceUnivocityImpl
    extends AbstractCSVFile
    CSVFile implementation that holds a reference to a CSV file on disk.
    Author:
    N. Tax
    • Constructor Detail

      • CSVFileReferenceUnivocityImpl

        public CSVFileReferenceUnivocityImpl​(java.nio.file.Path file)
      • CSVFileReferenceUnivocityImpl

        @Deprecated
        public CSVFileReferenceUnivocityImpl​(java.nio.file.Path file,
                                             java.lang.String filename,
                                             long fileSizeInBytes)
        Deprecated.
    • Method Detail

      • readHeader

        public java.lang.String[] readHeader​(CSVConfig importConfig)
                                      throws java.io.IOException
        Description copied from interface: CSVFile
        Returns 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: CSVFile
        Returns a new ICSVReader that can be used to read through the input stream. The caller is responsible for calling ICSVReader.close() on the reader.
        Returns:
        Throws:
        java.io.IOException
      • getCSV

        public ICSV getCSV()
        Returns:
        the CSV reader/writer interface used for this CSVFile