public class CSVUtil extends Object
| Constructor and Description |
|---|
CSVUtil() |
| Modifier and Type | Method and Description |
|---|---|
xyz.cofe.collection.Pair<String,Integer> |
parseCellDelimiter(String line,
int beginIndex,
CSVDesc desc)
Парсинг разделителя между ячейками
|
String[] |
parseFixedWidthLine(String line,
CSVDesc desc)
Парсинг CSV строки
|
String[] |
parseLine(String line,
CSVDesc desc)
Парсинг CSV строки
|
String[] |
parseNonFixedWidthLine(String line,
CSVDesc desc)
Парсинг CSV строки
|
xyz.cofe.collection.Pair<String,Integer> |
parseQoutedString(String line,
int beginIndex,
CSVDesc desc)
Парсинг экранированной строки (ячейки).
|
String |
toString(String[] cells,
CSVDesc desc) |
protected String |
toStringFixedWidthLine(String[] cells,
List<FixedColumn> fcolumns) |
protected String |
toStringNonFixedWidthLine(String[] cells,
CSVDesc desc) |
public xyz.cofe.collection.Pair<String,Integer> parseCellDelimiter(String line, int beginIndex, CSVDesc desc)
line - Исходный текстbeginIndex - С какого индекса производить поискdesc - Описание CSVpublic xyz.cofe.collection.Pair<String,Integer> parseQoutedString(String line, int beginIndex, CSVDesc desc)
line - Исходный текстbeginIndex - С какого индекса производить поискdesc - Описание CSVpublic String[] parseLine(String line, CSVDesc desc)
line - строкаdesc - Описание CSVpublic String[] parseFixedWidthLine(String line, CSVDesc desc)
line - строкаdesc - Описание CSVpublic String[] parseNonFixedWidthLine(String line, CSVDesc desc)
line - строкаdesc - Описание CSVprotected String toStringFixedWidthLine(String[] cells, List<FixedColumn> fcolumns)
Copyright © 2019. All rights reserved.