From: Nick Burch Date: Mon, 26 Oct 2009 13:08:21 +0000 (+0000) Subject: Fix constructors for new naming X-Git-Tag: REL_3_6~89 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f8f93ecbda95b0badee937fd0923b7592a923eb0;p=poi.git Fix constructors for new naming git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@829783 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/examples/src/org/apache/poi/hssf/usermodel/examples/HSSFReadWrite.java b/src/examples/src/org/apache/poi/hssf/usermodel/examples/HSSFReadWrite.java index f6e67e1487..002f5431bd 100644 --- a/src/examples/src/org/apache/poi/hssf/usermodel/examples/HSSFReadWrite.java +++ b/src/examples/src/org/apache/poi/hssf/usermodel/examples/HSSFReadWrite.java @@ -180,7 +180,7 @@ public class HSSFReadWrite * */ - public HSSF(String infile, String outfile, boolean write) + public HSSFReadWrite(String infile, String outfile, boolean write) throws IOException { this.filename = infile; @@ -223,7 +223,7 @@ public class HSSFReadWrite try { - HSSF hssf = new HSSF(args[ 0 ]); + HSSFReadWrite hssf = new HSSFReadWrite(args[ 0 ]); System.out.println("Data dump:\n"); HSSFWorkbook wb = hssf.hssfworkbook; @@ -288,7 +288,7 @@ public class HSSFReadWrite try { long time = System.currentTimeMillis(); - HSSF hssf = new HSSF(args[ 0 ], true); + HSSFReadWrite hssf = new HSSFReadWrite(args[ 0 ], true); System.out .println("" + (System.currentTimeMillis() - time) @@ -304,7 +304,7 @@ public class HSSFReadWrite System.out.println("readwrite test"); try { - HSSF hssf = new HSSF(args[ 0 ]); + HSSFReadWrite hssf = new HSSFReadWrite(args[ 0 ]); // HSSFStream hssfstream = hssf.hssfstream; HSSFWorkbook wb = hssf.hssfworkbook; @@ -329,7 +329,7 @@ public class HSSFReadWrite { try // delete row 0-24, row 74 - 99 && change cell 3 on row 39 to string "MODIFIED CELL!!" { - HSSF hssf = new HSSF(args[ 0 ]); + HSSFReadWrite hssf = new HSSFReadWrite(args[ 0 ]); // HSSFStream hssfstream = hssf.hssfstream; HSSFWorkbook wb = hssf.hssfworkbook;