]> source.dussan.org Git - poi.git/commitdiff
Fix constructors for new naming
authorNick Burch <nick@apache.org>
Mon, 26 Oct 2009 13:08:21 +0000 (13:08 +0000)
committerNick Burch <nick@apache.org>
Mon, 26 Oct 2009 13:08:21 +0000 (13:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@829783 13f79535-47bb-0310-9956-ffa450edef68

src/examples/src/org/apache/poi/hssf/usermodel/examples/HSSFReadWrite.java

index f6e67e1487a22cba722c009beb34818482aed8b7..002f5431bda0c87abe89c9bfc8386a57bf9aa259 100644 (file)
@@ -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;