Class CodeListCSVReader
java.lang.Object
org.openforis.collect.io.metadata.parsing.DataImportReader<CodeListLine>
org.openforis.collect.io.metadata.parsing.CSVDataImportReader<CodeListLine>
org.openforis.collect.manager.codelistimport.CodeListCSVReader
- All Implemented Interfaces:
Closeable,AutoCloseable
- Author:
- S. Ricci
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.openforis.collect.io.metadata.parsing.CSVDataImportReader
csvReader, currentCSVLineFields inherited from class org.openforis.collect.io.metadata.parsing.DataImportReader
currentLine -
Constructor Summary
ConstructorsConstructorDescriptionCodeListCSVReader(File file, CSVFileOptions csvFileOptions, List<String> languages, String defaultLanguage) -
Method Summary
Modifier and TypeMethodDescriptionprotected CodeListCSVReader.CodeListCSVLineParserprotected voidbooleanMethods inherited from class org.openforis.collect.io.metadata.parsing.CSVDataImportReader
close, getColumnNames, getLinesRead, init, isReady, readNextLine, sizeMethods inherited from class org.openforis.collect.io.metadata.parsing.DataImportReader
getCurrentLine, parseCurrentLine
-
Field Details
-
FLAT_LIST_CODE_COLUMN_NAME
- See Also:
-
FLAT_LIST_LABEL_COLUMN_NAME
- See Also:
-
CODE_COLUMN_SUFFIX
- See Also:
-
LABEL_COLUMN_SUFFIX
- See Also:
-
DESCRIPTION_COLUMN_SUFFIX
- See Also:
-
QUALIFIABLE_COLUMN_SUFFIX
- See Also:
-
-
Constructor Details
-
CodeListCSVReader
public CodeListCSVReader(File file, CSVFileOptions csvFileOptions, List<String> languages, String defaultLanguage) throws IOException, ParsingException - Throws:
IOExceptionParsingException
-
-
Method Details
-
readHeaders
- Overrides:
readHeadersin classCSVDataImportReader<CodeListLine>- Throws:
IOException
-
createLineParserInstance
- Specified by:
createLineParserInstancein classDataImportReader<CodeListLine>
-
validateAllFile
- Specified by:
validateAllFilein classDataImportReader<CodeListLine>- Throws:
ParsingException
-
getLevels
-
getColumnsInfo
-
getLanguages
-
getDefaultLanguage
-