Package org.jzy3d.io.xls
Class ExcelLoader<T>
- java.lang.Object
-
- org.jzy3d.io.xls.ExcelLoader<T>
-
public abstract class ExcelLoader<T> extends Object
-
-
Constructor Summary
Constructors Constructor Description ExcelLoader()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
accepts(org.apache.poi.ss.usermodel.Row row)
Might be refine by subclasses that may use this method as a line filter.protected boolean
isNull(org.apache.poi.ss.usermodel.Row row)
List<T>
load(String file, int from)
Stops when a row is null.List<T>
load(String file, int from, int to)
Stops when a maximum number of expected lines has been reached.Double
readCellDouble(org.apache.poi.ss.usermodel.Row row, int cellId)
String
readCellString(org.apache.poi.ss.usermodel.Row row, int cellId)
abstract T
readRow(org.apache.poi.ss.usermodel.Row row)
-
-
-
Method Detail
-
readRow
public abstract T readRow(org.apache.poi.ss.usermodel.Row row)
-
accepts
protected boolean accepts(org.apache.poi.ss.usermodel.Row row)
Might be refine by subclasses that may use this method as a line filter.
-
isNull
protected boolean isNull(org.apache.poi.ss.usermodel.Row row)
-
load
public List<T> load(String file, int from, int to) throws IOException
Stops when a maximum number of expected lines has been reached. Ignore rows that do not fullfillaccepts(org.apache.poi.ss.usermodel.Row)
.- Throws:
IOException
-
load
public List<T> load(String file, int from) throws IOException
Stops when a row is null.- Throws:
IOException
-
readCellString
public String readCellString(org.apache.poi.ss.usermodel.Row row, int cellId)
-
readCellDouble
public Double readCellDouble(org.apache.poi.ss.usermodel.Row row, int cellId)
-
-