jeremias 2003/07/03 12:05:10
Modified: examples/embedding/java/embedding ExampleFO2PDF.java
ExampleXML2PDF.java ExampleSVG2PDF.java
ExampleObj2PDF.java
Log:
Buffer the output streams for increased performance (not really needed here but
useful for showing best practices)
Revision Changes Path
1.3 +1 -0 xml-fop/examples/embedding/java/embedding/ExampleFO2PDF.java
Index: ExampleFO2PDF.java
===================================================================
RCS file: /home/cvs/xml-fop/examples/embedding/java/embedding/ExampleFO2PDF.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ExampleFO2PDF.java 12 Mar 2003 11:14:54 -0000 1.2
+++ ExampleFO2PDF.java 3 Jul 2003 19:05:10 -0000 1.3
@@ -95,6 +95,7 @@
//Setup output
OutputStream out = new java.io.FileOutputStream(pdf);
+ out = new java.io.BufferedOutputStream(out);
try {
driver.setOutputStream(out);
1.3 +1 -0 xml-fop/examples/embedding/java/embedding/ExampleXML2PDF.java
Index: ExampleXML2PDF.java
===================================================================
RCS file: /home/cvs/xml-fop/examples/embedding/java/embedding/ExampleXML2PDF.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ExampleXML2PDF.java 12 Mar 2003 11:14:54 -0000 1.2
+++ ExampleXML2PDF.java 3 Jul 2003 19:05:10 -0000 1.3
@@ -103,6 +103,7 @@
//Setup output
OutputStream out = new java.io.FileOutputStream(pdf);
+ out = new java.io.BufferedOutputStream(out);
try {
driver.setOutputStream(out);
1.2 +1 -0 xml-fop/examples/embedding/java/embedding/ExampleSVG2PDF.java
Index: ExampleSVG2PDF.java
===================================================================
RCS file: /home/cvs/xml-fop/examples/embedding/java/embedding/ExampleSVG2PDF.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ExampleSVG2PDF.java 12 Mar 2003 14:09:05 -0000 1.1
+++ ExampleSVG2PDF.java 3 Jul 2003 19:05:10 -0000 1.2
@@ -93,6 +93,7 @@
//Setup output
OutputStream out = new java.io.FileOutputStream(pdf);
+ out = new java.io.BufferedOutputStream(out);
try {
TranscoderOutput output = new TranscoderOutput(out);
1.3 +1 -0 xml-fop/examples/embedding/java/embedding/ExampleObj2PDF.java
Index: ExampleObj2PDF.java
===================================================================
RCS file: /home/cvs/xml-fop/examples/embedding/java/embedding/ExampleObj2PDF.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ExampleObj2PDF.java 12 Mar 2003 11:14:54 -0000 1.2
+++ ExampleObj2PDF.java 3 Jul 2003 19:05:10 -0000 1.3
@@ -106,6 +106,7 @@
//Setup output
OutputStream out = new java.io.FileOutputStream(pdf);
+ out = new java.io.BufferedOutputStream(out);
try {
driver.setOutputStream(out);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]