public class CSVReaderFormat extends Object
NumberVectorLabelParser
.
This class encapsulates csv format settings, that need to be parsed in
multiple places from ELKI, not only on input vector files.Modifier and Type | Class and Description |
---|---|
static class |
CSVReaderFormat.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_CONCATENATION
A sign to separate attributes.
|
protected Pattern |
colSep
Stores the column separator pattern
|
protected Pattern |
comment
Comment pattern.
|
static String |
COMMENT_PATTERN
Default pattern for comments.
|
static CSVReaderFormat |
DEFAULT_FORMAT
Default CSV input format.
|
static String |
DEFAULT_SEPARATOR
A pattern defining whitespace.
|
static String |
NUMBER_PATTERN
A pattern catching most numbers that can be parsed using
Double.parseDouble:
Some examples:
1 1. |
static String |
QUOTE_CHARS
A quote pattern
|
protected String |
quoteChars
Stores the quotation character
|
Constructor and Description |
---|
CSVReaderFormat(Pattern colSep,
String quoteChars,
Pattern comment)
Constructor.
|
public static final String DEFAULT_SEPARATOR
public static final String QUOTE_CHARS
public static final String NUMBER_PATTERN
1
1.
1.2
.2
-.2e-03
public static final String COMMENT_PATTERN
public static final String ATTRIBUTE_CONCATENATION
public static final CSVReaderFormat DEFAULT_FORMAT
protected Pattern colSep
protected String quoteChars
protected Pattern comment
public TokenizedReader makeReader()
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.