public class CsvTools extends Object
| Constructor and Description |
|---|
CsvTools() |
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
read(CsvReader<T> csvReader)
读取CSV文件
|
static List<String[]> |
readRawCsv(String absoluteFilePath,
String encoding)
读入原生csv文件,解析后返回
|
static <T> File |
write(CsvWriter<T> csvWriter)
写入CSV文件
|
public static <T> List<T> read(CsvReader<T> csvReader)
T - 对应的实体csvReader - csvReaderpublic static <T> File write(CsvWriter<T> csvWriter)
T - 对应的实体csvWriter - csvWriterpublic static List<String[]> readRawCsv(String absoluteFilePath, String encoding) throws CsvException
absoluteFilePath - 文件绝对路径CsvExceptionCopyright © 2021. All rights reserved.