You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ke...@apache.org on 2002/03/04 09:22:27 UTC
cvs commit: xml-fop/src/org/apache/fop/apps CommandLineStarter.java
keiron 02/03/04 00:22:27
Modified: src/org/apache/fop/apps CommandLineStarter.java
Log:
use buffered stream and close at the end
Revision Changes Path
1.12 +4 -2 xml-fop/src/org/apache/fop/apps/CommandLineStarter.java
Index: CommandLineStarter.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/apps/CommandLineStarter.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- CommandLineStarter.java 21 Aug 2001 06:18:54 -0000 1.11
+++ CommandLineStarter.java 4 Mar 2002 08:22:27 -0000 1.12
@@ -1,5 +1,5 @@
/*
- * $Id: CommandLineStarter.java,v 1.11 2001/08/21 06:18:54 keiron Exp $
+ * $Id: CommandLineStarter.java,v 1.12 2002/03/04 08:22:27 keiron Exp $
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
@@ -65,11 +65,13 @@
try {
driver.setRenderer(commandLineOptions.getRenderer());
- driver.setOutputStream( new FileOutputStream(
+ BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(
commandLineOptions.getOutputFile()));
+ driver.setOutputStream(bos);
driver.getRenderer().setOptions(
commandLineOptions.getRendererOptions());
driver.render(parser, inputHandler.getInputSource());
+ bos.close();
System.exit(0);
} catch (Exception e) {
if (e instanceof FOPException) {
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org