|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.univocity.parsers.common.Format
com.univocity.parsers.tsv.TsvFormat
public class TsvFormat
The TSV format configuration, for tab-separated inputs. It offers the options in the default configuration in 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 Summary | |
|---|---|
TsvFormat()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.univocity.parsers.common.Format |
|---|
getComment, getLineSeparator, getLineSeparatorString, getNormalizedNewline, getSystemLineSeparator, isComment, isNewLine, setComment, setLineSeparator, setLineSeparator, setNormalizedNewline, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TsvFormat()
| Method Detail |
|---|
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 verified
protected TreeMap<String,Object> getConfiguration()
getConfiguration in class Formatpublic final TsvFormat clone()
clone in class Format
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||