poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject svn commit: r1155249 - /poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java
Date Tue, 09 Aug 2011 08:14:19 GMT
Author: sergey
Date: Tue Aug  9 08:14:19 2011
New Revision: 1155249

URL: http://svn.apache.org/viewvc?rev=1155249&view=rev
Log:
main() method seems never worked neither documented. removed.

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java?rev=1155249&r1=1155248&r2=1155249&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java Tue Aug  9 08:14:19
2011
@@ -18,7 +18,6 @@
 package org.apache.poi.hwpf;
 
 import java.io.ByteArrayInputStream;
-import java.io.FileInputStream;
 import java.io.FileNotFoundException;
 import java.io.IOException;
 import java.io.InputStream;
@@ -932,40 +931,4 @@ public final class HWPFDocument extends 
     Range r = new Range(start, start + length, this);
     r.delete();
   }
-
-  /**
-   * Takes two arguments, 1) name of the Word file to read in 2) location to
-   * write it out at.
-   * @param args
-   */
-  public static void main(String[] args)
-  {
-
-    try
-    {
-      HWPFDocument doc = new HWPFDocument(new FileInputStream(args[0]));
-      Range r = doc.getRange();
-      String str = r.text();
-      int x = 0;
-//      CharacterRun run = new CharacterRun();
-//      run.setBold(true);
-//      run.setItalic(true);
-//      run.setCapitalized(true);
-//
-//      Range range = doc.getRange();
-//      range.insertBefore("Hello World!!! HAHAHAHAHA I DID IT!!!", run);
-//
-//      OutputStream out = new FileOutputStream(args[1]);
-//      doc.write(out);
-//
-//      out.flush();
-//      out.close();
-
-
-    }
-    catch (Throwable t)
-    {
-      t.printStackTrace();
-    }
-  }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message