public class Csv2Tsv extends Object
| Constructor and Description |
|---|
Csv2Tsv() |
| Modifier and Type | Method and Description |
|---|---|
static String |
escapeTsvField(String value)
Escapes backslashes, tabs and newlines
This should cleanly unescape values from bash:
sed -r 's|([^\\](\\\\)*)(\\n)|\1\n|g' | sed -r 's|([^\\](\\\\)*)(\\t)|\1\t|g' | sed -r 's|\\\\|\\|g'
|
static void |
main(String[] args) |
static void |
test() |
static String |
unescapeTsvField(String value) |
public static void test()
public static void main(String[] args) throws FileNotFoundException
FileNotFoundExceptionpublic static String escapeTsvField(String value)
value - Copyright © 2014. All rights reserved.