public class CsvData extends Object implements Iterable<CsvRow>, Serializable
Constructor and Description |
---|
CsvData(List<String> header,
List<CsvRow> rows)
构造
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getHeader()
获取头信息列表,如果无头信息为
Null ,返回列表为只读列表 |
CsvRow |
getRow(int index)
获取指定行,从0开始
|
int |
getRowCount()
总行数
|
List<CsvRow> |
getRows()
获取所有行
|
Iterator<CsvRow> |
iterator() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public int getRowCount()
public List<String> getHeader()
Null
,返回列表为只读列表null
if no header existspublic CsvRow getRow(int index)
index
- 行号IndexOutOfBoundsException
- if index is out of rangeCopyright © 2024. All rights reserved.