public final class CSVDelimiter extends Object
Modifier and Type | Field and Description |
---|---|
static CSVDelimiter |
COMMA
Specifies a comma delimiter: ','.
|
static CSVDelimiter |
PIPE
Specifies a pipe delimiter: '|'.
|
static CSVDelimiter |
SEMICOLON
Specifies a semi-colon delimiter: ';'.
|
static CSVDelimiter |
SPACE
Specifies a space delimiter: ' '.
|
static CSVDelimiter |
TAB
Specifies a tab delimiter: '\t'.
|
Modifier and Type | Method and Description |
---|---|
String |
getCode()
Returns the
String code of the delimiter. |
char |
getValue()
Returns the
char value of the delimiter. |
boolean |
isCOMMA()
Returns
true if the delimiter is COMMA . |
boolean |
isPIPE()
Returns
true if the delimiter is PIPE . |
boolean |
isSEMICOLON()
Returns
true if the delimiter is SEMICOLON . |
boolean |
isSPACE()
Returns
true if the delimiter is SPACE . |
boolean |
isTAB()
Returns
true if the delimiter is TAB . |
static CSVDelimiter |
parse(char value)
Returns the delimiter instance that corresponds to the specified
char value. |
static CSVDelimiter |
parse(String code)
Returns the delimiter instance that corresponds to the specified
String code. |
public static final CSVDelimiter SEMICOLON
public static final CSVDelimiter COMMA
public static final CSVDelimiter TAB
public static final CSVDelimiter PIPE
public static final CSVDelimiter SPACE
public static CSVDelimiter parse(char value) throws HmfhException
char
value.HmfhException
public static CSVDelimiter parse(String code) throws HmfhException
String
code.HmfhException
public char getValue()
char
value of the delimiter.public String getCode()
String
code of the delimiter.public boolean isCOMMA()
true
if the delimiter is COMMA
.public boolean isPIPE()
true
if the delimiter is PIPE
.public boolean isSEMICOLON()
true
if the delimiter is SEMICOLON
.public boolean isSPACE()
true
if the delimiter is SPACE
.public boolean isTAB()
true
if the delimiter is TAB
.