Package elki.datasource.parser
Class CSVReaderFormat.Par
- java.lang.Object
-
- elki.datasource.parser.CSVReaderFormat.Par
-
- All Implemented Interfaces:
Parameterizer
- Enclosing class:
- CSVReaderFormat
public static class CSVReaderFormat.Par extends java.lang.Object implements Parameterizer
Parameterization class.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.regex.PatterncolSepStores the column separator patternstatic OptionIDCOLUMN_SEPARATOR_IDOptionID for the column separator parameter (defaults to whitespace as inCSVReaderFormat.DEFAULT_SEPARATOR.protected java.util.regex.PatterncommentComment pattern.static OptionIDCOMMENT_IDComment pattern.static OptionIDQUOTE_IDOptionID for the quote character parameter (defaults to a double quotation mark as inCSVReaderFormat.QUOTE_CHARS.protected java.lang.StringquoteCharsStores the quotation character
-
Constructor Summary
Constructors Constructor Description Par()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(Parameterization config)Configure the class.CSVReaderFormatmake()Make an instance after successful configuration.
-
-
-
Field Detail
-
COLUMN_SEPARATOR_ID
public static final OptionID COLUMN_SEPARATOR_ID
OptionID for the column separator parameter (defaults to whitespace as inCSVReaderFormat.DEFAULT_SEPARATOR.
-
QUOTE_ID
public static final OptionID QUOTE_ID
OptionID for the quote character parameter (defaults to a double quotation mark as inCSVReaderFormat.QUOTE_CHARS.
-
COMMENT_ID
public static final OptionID COMMENT_ID
Comment pattern.
-
colSep
protected java.util.regex.Pattern colSep
Stores the column separator pattern
-
quoteChars
protected java.lang.String quoteChars
Stores the quotation character
-
comment
protected java.util.regex.Pattern comment
Comment pattern.
-
-
Method Detail
-
configure
public void configure(Parameterization config)
Description copied from interface:ParameterizerConfigure the class.Note: the status is collected by the parameterization object, so that multiple errors may arise and be reported in one run.
- Specified by:
configurein interfaceParameterizer- Parameters:
config- Parameterization
-
make
public CSVReaderFormat make()
Description copied from interface:ParameterizerMake an instance after successful configuration.Note: your class should return the exact type, only this very broad interface should use
Objectas return type.- Specified by:
makein interfaceParameterizer- Returns:
- a new instance
-
-