Class CsvwLib
java.lang.Object
org.aksw.commons.model.csvw.domain.impl.CsvwLib
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DialectbuildEffectiveModel(Dialect src, DialectMutable dest) Apply defaults according to the csvw spec (https://www.w3.org/ns/csvw#class-definitions).static CharacterexpectAtMostOneChar(String contextLabel, String str) static CharacterexpectAtMostOneChar(String contextLabel, String str, Character fallbackChar) static CharsetgetEncoding(String encoding, Charset fallback) Raises IllegalArgumentException if neither encoding nor fallback is specifiedstatic CharsetgetEncoding(Dialect dialect, Charset fallback) static StringgetExcelColumnLabel(int columnIndex) Create an excel-like column label for a given zero-based column indexstatic boolean
-
Field Details
-
DFT_LINE_TERMINATORS
-
END_OF_DATA_KEY
- See Also:
-
FIELD_SEPARATOR_KEY
- See Also:
-
LINE_TERMINATOR_KEY
- See Also:
-
-
Constructor Details
-
CsvwLib
public CsvwLib()
-
-
Method Details
-
isPresent
-
expectAtMostOneChar
-
expectAtMostOneChar
-
buildEffectiveModel
Apply defaults according to the csvw spec (https://www.w3.org/ns/csvw#class-definitions). The target may be the same as the source. -
getEncoding
-
getEncoding
-
getExcelColumnLabel
Create an excel-like column label for a given zero-based column index0: 'a'
25: 'z'
26: 'aa', ...
-