- java.lang.Object
-
- io.annot8.components.files.content.CSVTable
-
- All Implemented Interfaces:
io.annot8.common.data.content.Table
public class CSVTable extends Object implements io.annot8.common.data.content.Table
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnCount()Optional<List<String>>getColumnNames()static List<String>getHeaders(List<String> knownHeaders, int colCount)intgetRowCount()Stream<io.annot8.common.data.content.Row>getRows()
-
-
-
Constructor Detail
-
CSVTable
public CSVTable(File file, boolean hasHeaders)
-
-
Method Detail
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCountin interfaceio.annot8.common.data.content.Table
-
getRowCount
public int getRowCount()
- Specified by:
getRowCountin interfaceio.annot8.common.data.content.Table
-
getColumnNames
public Optional<List<String>> getColumnNames()
- Specified by:
getColumnNamesin interfaceio.annot8.common.data.content.Table
-
getRows
public Stream<io.annot8.common.data.content.Row> getRows()
- Specified by:
getRowsin interfaceio.annot8.common.data.content.Table
-
-