Package com.logicaldoc.importfolder
Class IndexCSV
java.lang.Object
com.logicaldoc.util.csv.CSVFile
com.logicaldoc.util.csv.CSVFileReader
com.logicaldoc.importfolder.IndexCSV
- All Implemented Interfaces:
- Closeable,- AutoCloseable
An import index file that uses the CSV format instead of the XML
- Since:
- 8.4
- Author:
- Marco Meschieri - LogicalDOC
- 
Constructor SummaryConstructorsConstructorDescriptionIndexCSV(Crawler crawler, ImportFolder importFolder, Map<String, com.logicaldoc.core.metadata.Template> templates, Collection<com.logicaldoc.core.folder.Folder> workspaces, File inputFile) IndexCSV(ImportFolder importFolder, File inputFile) 
- 
Method SummaryModifier and TypeMethodDescriptionlongcount()Gives the number of rows, excluding the headervoidProcesses the CSV file line by line importing the documentsMethods inherited from class com.logicaldoc.util.csv.CSVFileReaderclose, readFieldsMethods inherited from class com.logicaldoc.util.csv.CSVFilegetFieldSeparator, getTextQualifier, setFieldSeparator, setTextQualifier
- 
Constructor Details- 
IndexCSVpublic IndexCSV(ImportFolder importFolder, File inputFile) throws IOException, com.logicaldoc.core.PersistenceException - Throws:
- IOException
- com.logicaldoc.core.PersistenceException
 
- 
IndexCSVpublic IndexCSV(Crawler crawler, ImportFolder importFolder, Map<String, com.logicaldoc.core.metadata.Template> templates, Collection<com.logicaldoc.core.folder.Folder> workspaces, File inputFile) throws IOException, com.logicaldoc.core.PersistenceException- Throws:
- IOException
- com.logicaldoc.core.PersistenceException
 
 
- 
- 
Method Details- 
countGives the number of rows, excluding the header- Returns:
- the total number of data rows
- Throws:
- IOException- error reading the CSV file
 
- 
importDocumentspublic void importDocuments() throws com.logicaldoc.core.PersistenceExceptionProcesses the CSV file line by line importing the documents- Throws:
- com.logicaldoc.core.PersistenceException- error at data layer
 
 
-