Skip to content

Commit 125952e

Browse files
committed
[Feature] add for new
1 parent 372bc82 commit 125952e

File tree

3 files changed

+751
-4
lines changed

3 files changed

+751
-4
lines changed

doc/user/01-csv-引导类.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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 | 是否进行特殊字符的转换 |

doc/user/05-csv-特殊字符转义.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
| 原始 | 转义后 |
1212
|:--|:--|
13-
| `,` | ``&CSV_COMMA;` |
13+
| `,` | `&CSV_COMMA;` |
1414
| `|` | `&CSV_OR;` |
1515
| `:` | `&CSV_COLON;`|
1616
| `=` | `&CSV_EUQAL;` |

0 commit comments

Comments
 (0)