aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Vladimirov <sergey@apache.org>2011-08-09 08:14:19 +0000
committerSergey Vladimirov <sergey@apache.org>2011-08-09 08:14:19 +0000
commit0d55c007b79a34e949eb3afd1011e4d22931590a (patch)
treea76e02f659bf8cf208baf87794e4dc269ee80964
parent0a8b8570ad7eebae9d6feb6141b402991a29fc23 (diff)
downloadpoi-0d55c007b79a34e949eb3afd1011e4d22931590a.tar.gz
poi-0d55c007b79a34e949eb3afd1011e4d22931590a.zip
main() method seems never worked neither documented. removed.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1155249 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java b/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java
index b9327f48f1..296136ccc9 100644
--- a/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java
+++ b/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java
@@ -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 HWPFDocumentCore
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();
- }
- }
}