]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Buffer the output streams for increased performance (not really needed here but usefu...
authorJeremias Maerki <jeremias@apache.org>
Thu, 3 Jul 2003 19:05:10 +0000 (19:05 +0000)
committerJeremias Maerki <jeremias@apache.org>
Thu, 3 Jul 2003 19:05:10 +0000 (19:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196567 13f79535-47bb-0310-9956-ffa450edef68

examples/embedding/java/embedding/ExampleFO2PDF.java
examples/embedding/java/embedding/ExampleObj2PDF.java
examples/embedding/java/embedding/ExampleSVG2PDF.java
examples/embedding/java/embedding/ExampleXML2PDF.java

index 6171e031d10f78848b4d9254b28c77f73955bc14..da02dde9fb59c388ab0f5687e16c321542d6ee6e 100644 (file)
@@ -95,6 +95,7 @@ public class ExampleFO2PDF {
         
         //Setup output
         OutputStream out = new java.io.FileOutputStream(pdf);
+        out = new java.io.BufferedOutputStream(out);
         try {
             driver.setOutputStream(out);
 
index 591142effc40ee6b4c9e57abfe1b3ff96d445cc4..c23b3faa41018257a27e83f7ca1f7d0723673c49 100644 (file)
@@ -106,6 +106,7 @@ public class ExampleObj2PDF {
 
         //Setup output
         OutputStream out = new java.io.FileOutputStream(pdf);
+        out = new java.io.BufferedOutputStream(out);
         try {
             driver.setOutputStream(out);
 
index 666f509603f8d3854fd9529f4a02d59fd8c1b49f..80e0380d2319c15173e91807ca82a39205ebab03 100644 (file)
@@ -93,6 +93,7 @@ public class ExampleSVG2PDF {
             
             //Setup output
             OutputStream out = new java.io.FileOutputStream(pdf);
+            out = new java.io.BufferedOutputStream(out);
             try {
                 TranscoderOutput output = new TranscoderOutput(out);
                 
index 186e6b087e22df4f4c9fe85093b454fbd8de9aec..9cabadc0c22d5f46b44f897cb49f1d1f6f581377 100644 (file)
@@ -103,6 +103,7 @@ public class ExampleXML2PDF {
         
         //Setup output
         OutputStream out = new java.io.FileOutputStream(pdf);
+        out = new java.io.BufferedOutputStream(out);
         try {
             driver.setOutputStream(out);