2 Commits

Author SHA1 Message Date
223abc7ac5 style: 缩进 2024-12-01 22:14:32 +08:00
1294fb5414 chore: readme 2024-12-01 14:53:55 +08:00
10 changed files with 1375 additions and 1364 deletions

View File

@ -8,9 +8,6 @@
<br>
[![license](https://img.shields.io/github/license/octopusYan/dayz-mod-translator)](https://github.com/octopusYan/dayz-mod-translator)
![commit](https://img.shields.io/github/commit-activity/m/octopusYan/dayz-mod-translator?color=%23ff69b4)
<br>
![stars](https://img.shields.io/github/stars/octopusYan/dayz-mod-translator?style=social)
![GitHub all releases](https://img.shields.io/github/downloads/octopusYan/dayz-mod-translator/total?style=social)
<br>

View File

@ -6,22 +6,33 @@ import java.io.Serializable;
* CSV读取配置项
*
* @author looly
*
*/
public class CsvReadConfig extends CsvConfig<CsvReadConfig> implements Serializable {
private static final long serialVersionUID = 5396453565371560052L;
/** 指定标题行号,-1表示无标题行 */
/**
* 指定标题行号,-1表示无标题行
*/
protected long headerLineNo = -1;
/** 是否跳过空白行默认true */
/**
* 是否跳过空白行默认true
*/
protected boolean skipEmptyRows = true;
/** 每行字段个数不同时是否抛出异常默认false */
/**
* 每行字段个数不同时是否抛出异常默认false
*/
protected boolean errorOnDifferentFieldCount;
/** 定义开始的行(包括),此处为原始文件行号 */
/**
* 定义开始的行(包括),此处为原始文件行号
*/
protected long beginLineNo;
/** 结束的行(包括),此处为原始文件行号 */
/**
* 结束的行(包括),此处为原始文件行号
*/
protected long endLineNo = Long.MAX_VALUE - 1;
/** 每个字段是否去除两边空白符 */
/**
* 每个字段是否去除两边空白符
*/
protected boolean trimField;
/**

View File

@ -101,6 +101,7 @@ public class CsvReader extends CsvBaseReader implements Iterable<CsvRow>, Closea
this.reader = reader;
}
//--------------------------------------------------------------------------------------------- Constructor end
/**
* 读取CSV文件此方法只能调用一次<br>
* 调用此方法的前提是构造中传入文件路径或Reader

View File

@ -12,7 +12,9 @@ import java.util.*;
*/
public final class CsvRow implements List<String> {
/** 原始行号 */
/**
* 原始行号
*/
private final long originalLineNumber;
final Map<String, Integer> headerMap;