mirror of
https://github.com/octopusYan/dayz-mod-translator.git
synced 2024-12-28 03:56:42 +08:00
style: 缩进
This commit is contained in:
parent
1294fb5414
commit
223abc7ac5
@ -6,22 +6,33 @@ import java.io.Serializable;
|
|||||||
* CSV读取配置项
|
* CSV读取配置项
|
||||||
*
|
*
|
||||||
* @author looly
|
* @author looly
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public class CsvReadConfig extends CsvConfig<CsvReadConfig> implements Serializable {
|
public class CsvReadConfig extends CsvConfig<CsvReadConfig> implements Serializable {
|
||||||
private static final long serialVersionUID = 5396453565371560052L;
|
private static final long serialVersionUID = 5396453565371560052L;
|
||||||
|
|
||||||
/** 指定标题行号,-1表示无标题行 */
|
/**
|
||||||
|
* 指定标题行号,-1表示无标题行
|
||||||
|
*/
|
||||||
protected long headerLineNo = -1;
|
protected long headerLineNo = -1;
|
||||||
/** 是否跳过空白行,默认true */
|
/**
|
||||||
|
* 是否跳过空白行,默认true
|
||||||
|
*/
|
||||||
protected boolean skipEmptyRows = true;
|
protected boolean skipEmptyRows = true;
|
||||||
/** 每行字段个数不同时是否抛出异常,默认false */
|
/**
|
||||||
|
* 每行字段个数不同时是否抛出异常,默认false
|
||||||
|
*/
|
||||||
protected boolean errorOnDifferentFieldCount;
|
protected boolean errorOnDifferentFieldCount;
|
||||||
/** 定义开始的行(包括),此处为原始文件行号 */
|
/**
|
||||||
|
* 定义开始的行(包括),此处为原始文件行号
|
||||||
|
*/
|
||||||
protected long beginLineNo;
|
protected long beginLineNo;
|
||||||
/** 结束的行(包括),此处为原始文件行号 */
|
/**
|
||||||
|
* 结束的行(包括),此处为原始文件行号
|
||||||
|
*/
|
||||||
protected long endLineNo = Long.MAX_VALUE - 1;
|
protected long endLineNo = Long.MAX_VALUE - 1;
|
||||||
/** 每个字段是否去除两边空白符 */
|
/**
|
||||||
|
* 每个字段是否去除两边空白符
|
||||||
|
*/
|
||||||
protected boolean trimField;
|
protected boolean trimField;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -101,6 +101,7 @@ public class CsvReader extends CsvBaseReader implements Iterable<CsvRow>, Closea
|
|||||||
this.reader = reader;
|
this.reader = reader;
|
||||||
}
|
}
|
||||||
//--------------------------------------------------------------------------------------------- Constructor end
|
//--------------------------------------------------------------------------------------------- Constructor end
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 读取CSV文件,此方法只能调用一次<br>
|
* 读取CSV文件,此方法只能调用一次<br>
|
||||||
* 调用此方法的前提是构造中传入文件路径或Reader
|
* 调用此方法的前提是构造中传入文件路径或Reader
|
||||||
|
@ -12,7 +12,9 @@ import java.util.*;
|
|||||||
*/
|
*/
|
||||||
public final class CsvRow implements List<String> {
|
public final class CsvRow implements List<String> {
|
||||||
|
|
||||||
/** 原始行号 */
|
/**
|
||||||
|
* 原始行号
|
||||||
|
*/
|
||||||
private final long originalLineNumber;
|
private final long originalLineNumber;
|
||||||
|
|
||||||
final Map<String, Integer> headerMap;
|
final Map<String, Integer> headerMap;
|
||||||
|
Loading…
Reference in New Issue
Block a user