From: Jeremias Maerki Date: Thu, 3 Jul 2003 19:05:10 +0000 (+0000) Subject: Buffer the output streams for increased performance (not really needed here but usefu... X-Git-Tag: Root_Temp_KnuthStylePageBreaking~1356 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d5fb100640392006ed413a4d9e9464c35b620958;p=xmlgraphics-fop.git Buffer the output streams for increased performance (not really needed here but useful for showing best practices) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196567 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/examples/embedding/java/embedding/ExampleFO2PDF.java b/examples/embedding/java/embedding/ExampleFO2PDF.java index 6171e031d..da02dde9f 100644 --- a/examples/embedding/java/embedding/ExampleFO2PDF.java +++ b/examples/embedding/java/embedding/ExampleFO2PDF.java @@ -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); diff --git a/examples/embedding/java/embedding/ExampleObj2PDF.java b/examples/embedding/java/embedding/ExampleObj2PDF.java index 591142eff..c23b3faa4 100644 --- a/examples/embedding/java/embedding/ExampleObj2PDF.java +++ b/examples/embedding/java/embedding/ExampleObj2PDF.java @@ -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); diff --git a/examples/embedding/java/embedding/ExampleSVG2PDF.java b/examples/embedding/java/embedding/ExampleSVG2PDF.java index 666f50960..80e0380d2 100644 --- a/examples/embedding/java/embedding/ExampleSVG2PDF.java +++ b/examples/embedding/java/embedding/ExampleSVG2PDF.java @@ -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); diff --git a/examples/embedding/java/embedding/ExampleXML2PDF.java b/examples/embedding/java/embedding/ExampleXML2PDF.java index 186e6b087..9cabadc0c 100644 --- a/examples/embedding/java/embedding/ExampleXML2PDF.java +++ b/examples/embedding/java/embedding/ExampleXML2PDF.java @@ -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);