File tree Expand file tree Collapse file tree 3 files changed +751
-4
lines changed
Expand file tree Collapse file tree 3 files changed +751
-4
lines changed Original file line number Diff line number Diff line change @@ -15,19 +15,23 @@ CSV 有两个引导类:
1515
1616| 方法 | 默认值 | 说明 |
1717| :---| :---| :---|
18- | newInstance(final String path) | ` 必填 ` | 创建实例,并且指定待写入文件路径。|
19- | writeBom(boolean writeBom) | ` true ` | 是否写入 UTF8 BOM 头,建议第一次写入指定,避免中文乱码 |
18+ | newInstance(final String path) | ` 必填 ` | 创建实例,并且指定待写入文件路径。|
19+ | path (final String path) | | 配置文件路径,只有重新指定 path 路径时需要调用。|
20+ | writeHead(boolean writeBom) | ` true ` | 是否写入 head 头,如果想指定名称,可以结合注解。只有无 head 信息时,会写入。 |
21+ | writeBom(boolean writeBom) | ` true ` | 是否写入 UTF8 BOM 头,只有文件为空时才会写入。 |
2022| charset(String charset) | ` UTF-8 ` | 指定文件编码 |
2123| sort(ISort sort) | NoSort | 默认不进行字段排序 |
2224| write(List<T > list) | ` 无 ` | 待写入的文件列表 |
23-
25+ | escape | false | 是否进行特殊字符的转换 |
2426
2527## CsvReadBs
2628
2729| 方法 | 默认值 | 说明 |
2830| :---| :---| :---|
2931| newInstance(final String path) | ` 必填 ` | 创建实例,并且指定待读取文件路径。|
32+ | path (final String path) | | 配置文件路径,只有重新指定 path 路径时需要调用。|
3033| charset(String charset) | ` UTF-8 ` | 指定文件编码 |
3134| sort(ISort sort) | NoSort | 默认不进行字段排序 |
3235| startIndex(int startIndex) | 1 | 文件的第二行,默认第一行是 head |
3336| endIndex(int endIndex) | | 文件的最后一行 |
37+ | escape | false | 是否进行特殊字符的转换 |
Original file line number Diff line number Diff line change 1010
1111| 原始 | 转义后 |
1212| :--| :--|
13- | ` , ` | `` &CSV_COMMA;` |
13+ | ` , ` | ` &CSV_COMMA; ` |
1414| `| ` | ` &CSV_OR; ` |
1515| ` : ` | ` &CSV_COLON; ` |
1616| ` = ` | ` &CSV_EUQAL; ` |
You can’t perform that action at this time.
0 commit comments