Class CsvwUnivocityUtils
java.lang.Object
org.aksw.commons.model.csvw.univocity.CsvwUnivocityUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfigureCommonSettings(com.univocity.parsers.common.CommonParserSettings<?> settings, UnivocityCsvwConf csvwConf) Does not configure the formatconfigureCsvFormat(com.univocity.parsers.csv.CsvFormat format, org.aksw.commons.model.csvw.domain.api.Dialect dialect) configureDetection(com.univocity.parsers.csv.CsvParserSettings settings, org.aksw.commons.model.csvw.domain.api.Dialect dialect) configureDialect(org.aksw.commons.model.csvw.domain.api.DialectMutable dialect, com.univocity.parsers.csv.CsvFormat format) Configure a dialect with the attributes detected by univocityconfigureDialect(org.aksw.commons.model.csvw.domain.api.DialectMutable dialect, com.univocity.parsers.csv.CsvParserSettings settings, Callable<com.univocity.parsers.csv.CsvParser> parserFactory, Callable<Reader> readerSupp) Checks for certain non-configured univocity settings and if there are any then a parser is started for probing.static com.univocity.parsers.csv.CsvFormatdetectFormat(com.univocity.parsers.csv.CsvParser parser, Callable<Reader> readerSupp) static booleanisDetectionNeeded(com.univocity.parsers.common.CommonParserSettings<?> settings) static booleanisDetectionNeeded(com.univocity.parsers.csv.CsvParserSettings settings)
-
Constructor Details
-
CsvwUnivocityUtils
public CsvwUnivocityUtils()
-
-
Method Details
-
configureCommonSettings
public static Set<String> configureCommonSettings(com.univocity.parsers.common.CommonParserSettings<?> settings, UnivocityCsvwConf csvwConf) Does not configure the format -
configureDetection
-
configureCsvFormat
-
configureDialect
-
isDetectionNeeded
public static boolean isDetectionNeeded(com.univocity.parsers.csv.CsvParserSettings settings) -
isDetectionNeeded
public static boolean isDetectionNeeded(com.univocity.parsers.common.CommonParserSettings<?> settings) -
detectFormat
-
configureDialect
public static Set<String> configureDialect(org.aksw.commons.model.csvw.domain.api.DialectMutable dialect, com.univocity.parsers.csv.CsvParserSettings settings, Callable<com.univocity.parsers.csv.CsvParser> parserFactory, Callable<Reader> readerSupp) throws Exception Checks for certain non-configured univocity settings and if there are any then a parser is started for probing. Those settings are: line terminators, field delimiters and quote char. If they are given then nothing is done.- Throws:
Exception
-