public class TsvFormat extends Format
Format
, as well as
the escapeChar
character for escaping \t, \n, \r and \ in TSV values.
Delimiters are defined as tab characters '\t'Format
Constructor and Description |
---|
TsvFormat() |
Modifier and Type | Method and Description |
---|---|
TsvFormat |
clone() |
protected TreeMap<String,Object> |
getConfiguration() |
char |
getEscapeChar()
Returns the character used for escaping special characters in TSV inputs: \t, \n, \r and \
|
char |
getEscapedTabChar()
Returns the character that should be used to represent an escaped tab, i.e.
|
boolean |
isEscapeChar(char ch)
Identifies whether or not a given character is used for escaping special characters in TSV (\t, \n, \r and \).
|
void |
setEscapeChar(char escapeChar)
Defines the character used for escaping special characters in TSV inputs: \t, \n, \r and \ .
|
void |
setEscapedTabChar(char escapedTabChar)
Defines the character that should be used to represent an escaped tab, i.e.
|
getComment, getLineSeparator, getLineSeparatorString, getNormalizedNewline, getSystemLineSeparator, isComment, isNewLine, setComment, setLineSeparator, setLineSeparator, setNormalizedNewline, toString
public void setEscapeChar(char escapeChar)
escapeChar
- the escape characterpublic char getEscapeChar()
public char getEscapedTabChar()
getEscapeChar()
. For example, if getEscapeChar()
== '\\' and == 'X'
,
the sequence '\X'
will identify a tab.
Defaults to 't'
.getEscapeChar()
that represents an escaped tab.public void setEscapedTabChar(char escapedTabChar)
getEscapeChar()
. For example, if getEscapeChar()
== '\\' and == 'X'
,
the sequence '\X'
will identify a tab.
Defaults to 't'
.escapedTabChar
- the character following the getEscapeChar()
that represents an escaped tab.public boolean isEscapeChar(char ch)
ch
- the character to be verifiedprotected TreeMap<String,Object> getConfiguration()
getConfiguration
in class Format
Copyright © 2017 uniVocity Software Pty Ltd. All rights reserved.