aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/apps/XTCommandLine.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/apps/XTCommandLine.java')
-rw-r--r--src/org/apache/fop/apps/XTCommandLine.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/apache/fop/apps/XTCommandLine.java b/src/org/apache/fop/apps/XTCommandLine.java
index 863f7836c..78e8b8658 100644
--- a/src/org/apache/fop/apps/XTCommandLine.java
+++ b/src/org/apache/fop/apps/XTCommandLine.java
@@ -116,7 +116,8 @@ public class XTCommandLine {
driver.addElementMapping("org.apache.fop.svg.SVGElementMapping");
driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping");
driver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping");
- driver.setOutputStream(new FileOutputStream(args[2]));
+ OutputStream stream = new BufferedOutputStream(new FileOutputStream(args[2]));
+ driver.setOutputStream(stream);
driver.buildFOTree(xslProcessor, fileInputSource(args[0]));
driver.format();
driver.render();