Class FormulaViewer

java.lang.Object
org.apache.poi.hssf.dev.FormulaViewer

public class FormulaViewer extends Object
FormulaViewer - finds formulas in a BIFF8 file and attempts to read them/display data from them. Only works if Formulas are enabled in "RecordFactory"
Author:
andy, Avik
  • Constructor Details

    • FormulaViewer

      public FormulaViewer()
      Creates new FormulaViewer
  • Method Details

    • run

      public void run() throws IOException
      Method run
      Throws:
      IOException - if the file contained errors
    • parseFormulaRecord

      public void parseFormulaRecord(FormulaRecord record)
      Method parseFormulaRecord
      Parameters:
      record - the record to be parsed
    • setFile

      public void setFile(String file)
      Method setFile
      Parameters:
      file - the file to process
    • setList

      public void setList(boolean list)
    • main

      public static void main(String[] args) throws IOException
      Method main pass me a filename and I'll try and parse the formulas from it
      Parameters:
      args - pass one argument with the filename or --help
      Throws:
      IOException - if the file can't be read or contained errors