Class ExcelLoader<T>

java.lang.Object
org.jzy3d.io.xls.ExcelLoader<T>

public abstract class ExcelLoader<T> extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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)
     
    load(String file, int from)
    Stops when a row is null.
    load(String file, int from, int to)
    Stops when a maximum number of expected lines has been reached.
    readCellDouble(org.apache.poi.ss.usermodel.Row row, int cellId)
     
    readCellString(org.apache.poi.ss.usermodel.Row row, int cellId)
     
    abstract T
    readRow(org.apache.poi.ss.usermodel.Row row)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExcelLoader

      public ExcelLoader()
  • Method Details

    • 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 fullfill accepts(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)