From 0bda188dbc73739c3058b6123f783b95043c8fb9 Mon Sep 17 00:00:00 2001 From: Said Ryan Ackley Date: Mon, 23 Sep 2002 20:14:17 +0000 Subject: [PATCH] You must specify the output file for the main function now git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352857 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/poi/hdf/extractor/WordDocument.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/scratchpad/src/org/apache/poi/hdf/extractor/WordDocument.java b/src/scratchpad/src/org/apache/poi/hdf/extractor/WordDocument.java index 5d7f558325..b21dead6f0 100644 --- a/src/scratchpad/src/org/apache/poi/hdf/extractor/WordDocument.java +++ b/src/scratchpad/src/org/apache/poi/hdf/extractor/WordDocument.java @@ -125,6 +125,9 @@ public class WordDocument /** length of footnotes text*/ int _ccpFtn; + /** The name of the file to write to */ + String _outName + /** OLE stuff*/ private InputStream istream; /** OLE stuff*/ @@ -158,6 +161,7 @@ public class WordDocument }*/ try { + _outName = args[1]; WordDocument file = new WordDocument(args[0]); file.closeDoc(); } @@ -1529,7 +1533,7 @@ public class WordDocument //test code try { - OutputStreamWriter test = new OutputStreamWriter(new FileOutputStream("/home/andy/test.xml"), "8859_1"); + OutputStreamWriter test = new OutputStreamWriter(new FileOutputStream(_outName), "8859_1"); test.write(_headerBuffer.toString()); test.write(_bodyBuffer.toString()); test.flush(); -- 2.39.5