Package com.axelor.data.export.csv
Class CsvReader
java.lang.Object
com.axelor.data.export.ImportReader
com.axelor.data.export.csv.CsvReader
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.axelor.data.export.ImportReader
close, ensureOpen, getPath, isClosed, read
-
Constructor Details
-
CsvReader
- Throws:
IOException
-
CsvReader
Create a reader for a single CSV file, zip archive or directory of CSV files.When the path points to a single CSV file, the given
nameis used as the source name (which resolves to the target model). This allows importing a flat CSV file whose file name doesn't match the target model (e.g. the file produced by a flat export). Ifnameisnull, the file name (without extension) is used instead.- Parameters:
path- the CSV file, zip archive or directoryname- the source name to use for a single CSV file, may benull- Throws:
IOException- if the path can't be read
-
-
Method Details
-
getNames
- Specified by:
getNamesin classImportReader
-
doRead
- Specified by:
doReadin classImportReader- Throws:
IOException
-
createParser
- Throws:
IOException
-
doClose
- Specified by:
doClosein classImportReader- Throws:
IOException
-