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.Pattern
colSep
Stores the column separator patternstatic OptionID
COLUMN_SEPARATOR_ID
OptionID for the column separator parameter (defaults to whitespace as inCSVReaderFormat.DEFAULT_SEPARATOR
.protected java.util.regex.Pattern
comment
Comment pattern.static OptionID
COMMENT_ID
Comment pattern.static OptionID
QUOTE_ID
OptionID for the quote character parameter (defaults to a double quotation mark as inCSVReaderFormat.QUOTE_CHARS
.protected java.lang.String
quoteChars
Stores the quotation character
-
Constructor Summary
Constructors Constructor Description Par()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Parameterization config)
Configure the class.CSVReaderFormat
make()
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:Parameterizer
Configure 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:
configure
in interfaceParameterizer
- Parameters:
config
- Parameterization
-
make
public CSVReaderFormat make()
Description copied from interface:Parameterizer
Make an instance after successful configuration.Note: your class should return the exact type, only this very broad interface should use
Object
as return type.- Specified by:
make
in interfaceParameterizer
- Returns:
- a new instance
-
-