12.30.2001 - revised for poi 1.0-final - minor revisions
-
01.03.2001 - revised for poi 1.1-devel
-
-
-
This release of the how-to outlines functionality for 1.5.
Those looking for information on the release edition should
@@ -94,94 +87,99 @@ does not close it for you.
Here is some example code (excerpted and adapted from
org.apache.poi.hssf.dev.HSSF test class):
-
// demonstrate adding/naming and deleting a sheet
// create a sheet, set its title then delete it
s = wb.createSheet();
- wb.setSheetName(1,"DeletedSheet");
+ wb.setSheetName(1, "DeletedSheet");
wb.removeSheetAt(1);
//end deleted sheet
@@ -223,7 +222,7 @@ org.apache.poi.hssf.dev.HSSF test class):
// close our file (don't blow out our file handles
wb.write(out);
out.close();
-
+ ]]>
@@ -281,119 +280,96 @@ registered to listen for until the file has been completely read.
A code excerpt from org.apache.poi.hssf.dev.EFHSSF (which is
in CVS or the source distribution) is reprinted below with excessive
comments:
-
-//this non-public class implements the required interface
-// we construct it with a copy of its container class...this is cheap but effective
-class EFHSSFListener implements HSSFListener {
- EFHSSF efhssf;
- public EFHSSFListener(EFHSSF efhssf) {
- this.efhssf = efhssf;
- }
-
- // we just use this as an adapter so we pass the record to the method in the container class
- public void processRecord(Record record) {
- efhssf.recordHandler(record);
+
+}
+]]>
@@ -427,13 +403,15 @@ export CLASSPATH=$CLASSPATH:$HSSFDIR/hssf.jar:$HSSFDIR/poi-poifs.jar:$HSSFDIR/po
This is the read/write/modify test. It reads in the spreadsheet, modifies a cell, and writes it back out.
Failing this test is not necessarily a bad thing. If HSSF tries to modify a non-existant sheet then this will
-most likely fail. No big deal.
+most likely fail. No big deal.
@@ -510,7 +488,7 @@ intertwined. To use that just pass a file with a second argument
matching "on" exactly.
In the next release cycle we'll also have something called a
FormulaViewer. The class is already there, but its not very useful
-yet. When it does something, I'll document it.
+yet. When it does something, we'll document it.
--
2.39.5