jxl.demo
Class ReadWrite

java.lang.Object
  extended byjxl.demo.ReadWrite

public class ReadWrite
extends java.lang.Object

Demo class which uses the api to read in a spreadsheet and generate a clone of that spreadsheet which contains the same data. If the spreadsheet read in is the spreadsheet called jxlrwtest.xls (provided with the distribution) then this class will modify certain fields in the copy of that spreadsheet. This is illustrating that it is possible to read in a spreadsheet, modify a few values, and write it under a new name.


Constructor Summary
ReadWrite(java.lang.String input, java.lang.String output)
          Constructor
 
Method Summary
 void readWrite()
          Reads in the inputFile and creates a writable copy of it called outputFile
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadWrite

public ReadWrite(java.lang.String input,
                 java.lang.String output)
Constructor

Parameters:
output -
input -
Method Detail

readWrite

public void readWrite()
               throws java.io.IOException,
                      jxl.read.biff.BiffException,
                      WriteException
Reads in the inputFile and creates a writable copy of it called outputFile

Throws:
java.io.IOException
jxl.read.biff.BiffException
WriteException