aboutsummaryrefslogtreecommitdiffstats
path: root/examples/embedding
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2003-07-03 19:05:10 +0000
committerJeremias Maerki <jeremias@apache.org>2003-07-03 19:05:10 +0000
commitd5fb100640392006ed413a4d9e9464c35b620958 (patch)
tree9e9ced75114a25f728f1b58a483701296e0539a6 /examples/embedding
parentd51da4e60e2fbba68fd8eb38460e7d6eb56ba7aa (diff)
downloadxmlgraphics-fop-d5fb100640392006ed413a4d9e9464c35b620958.tar.gz
xmlgraphics-fop-d5fb100640392006ed413a4d9e9464c35b620958.zip
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
Diffstat (limited to 'examples/embedding')
-rw-r--r--examples/embedding/java/embedding/ExampleFO2PDF.java1
-rw-r--r--examples/embedding/java/embedding/ExampleObj2PDF.java1
-rw-r--r--examples/embedding/java/embedding/ExampleSVG2PDF.java1
-rw-r--r--examples/embedding/java/embedding/ExampleXML2PDF.java1
4 files changed, 4 insertions, 0 deletions
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);