aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/apps/XTCommandLine.java
diff options
context:
space:
mode:
authorKelly Campbell <kellyc@apache.org>2000-12-18 02:28:40 +0000
committerKelly Campbell <kellyc@apache.org>2000-12-18 02:28:40 +0000
commit6fd5d987513c63d6165216bff1a1dc931c881d7f (patch)
tree613984df6537ea9ffc022077b4732045d950fcea /src/org/apache/fop/apps/XTCommandLine.java
parent7a8a17ca8876d9b9b76131bc34ea10bac6c9346d (diff)
downloadxmlgraphics-fop-6fd5d987513c63d6165216bff1a1dc931c881d7f.tar.gz
xmlgraphics-fop-6fd5d987513c63d6165216bff1a1dc931c881d7f.zip
Changed output from Writer to OutputStream to allow for binary output.
Added compression filters for PDF renderer. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193888 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/apps/XTCommandLine.java')
-rw-r--r--src/org/apache/fop/apps/XTCommandLine.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/org/apache/fop/apps/XTCommandLine.java b/src/org/apache/fop/apps/XTCommandLine.java
index b11aed2d4..863f7836c 100644
--- a/src/org/apache/fop/apps/XTCommandLine.java
+++ b/src/org/apache/fop/apps/XTCommandLine.java
@@ -67,12 +67,7 @@ import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
// Java
-import java.io.File;
-import java.io.FileReader;
-import java.io.FileWriter;
-import java.io.PrintWriter;
-import java.io.IOException;
-import java.io.FileNotFoundException;
+import java.io.*;
import java.net.URL;
/**
@@ -121,7 +116,7 @@ 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.setWriter(new PrintWriter(new FileWriter(args[2])));
+ driver.setOutputStream(new FileOutputStream(args[2]));
driver.buildFOTree(xslProcessor, fileInputSource(args[0]));
driver.format();
driver.render();