| Package | Description |
|---|---|
| com.gitee.cliveyuan.tools.data | |
| com.gitee.cliveyuan.tools.exception |
| Modifier and Type | Method and Description |
|---|---|
File |
CsvHelper.generate(String[] headers,
Collection<T> data,
String filePath)
生成CSV (默认UTF-8)
|
File |
CsvHelper.generate(String[] headers,
Collection<T> data,
String filePath,
String encoding)
生成CSV
|
List<T> |
CsvHelper.parse(String csvPath,
boolean skipFirstRow,
Class<T> clazz)
解析CSV (默认UTF-8编码)
|
List<T> |
CsvHelper.parse(String csvPath,
boolean skipFirstRow,
Class<T> clazz,
String encoding)
解析CSV
|
List<T> |
CsvHelper.parse(String csvPath,
int skipRowNo,
Class<T> clazz,
String encoding)
解析CSV
|
static List<String[]> |
CsvTools.readCsv(String absoluteFilePath,
String encoding)
读入csv文件,解析后返回
|
| Modifier and Type | Method and Description |
|---|---|
static CsvException |
CsvException.failToGenerateCsv() |
static CsvException |
CsvException.failToMkdirs() |
static CsvException |
CsvException.failToParseCsv() |
static CsvException |
CsvException.notSupport(String extension) |
Copyright © 2020. All rights reserved.