Class IndexCSV

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class IndexCSV
    extends com.logicaldoc.util.csv.CSVFileReader
    implements Closeable
    An import index file that uses the CSV format instead of the XML
    Since:
    8.4
    Author:
    Marco Meschieri - LogicalDOC
    • Method Detail

      • count

        public long count()
                   throws IOException
        Gives the number of rows, excluding the header
        Returns:
        the total number of data rows
        Throws:
        IOException - error reading the CSV file
      • importDocuments

        public void importDocuments()
                             throws com.logicaldoc.core.PersistenceException
        Processes the CSV file line by line importing the documents
        Throws:
        com.logicaldoc.core.PersistenceException - error in the database