From f7ebe087cfc59cf9ff28e7f458e2e4f21f9770e9 Mon Sep 17 00:00:00 2001 From: Glen Mazza Date: Fri, 9 Jul 2004 01:48:58 +0000 Subject: [PATCH] Made Driver.initialize() private, more in line with 0.20.5, which doesn't have such a method. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197773 13f79535-47bb-0310-9956-ffa450edef68 --- examples/embedding/java/embedding/ExampleDOM2PDF.java | 3 --- examples/embedding/java/embedding/ExampleFO2PDF.java | 3 --- examples/embedding/java/embedding/ExampleObj2PDF.java | 3 --- examples/embedding/java/embedding/ExampleXML2PDF.java | 3 --- src/java/org/apache/fop/apps/Driver.java | 2 +- src/java/org/apache/fop/servlet/FopServlet.java | 1 - 6 files changed, 1 insertion(+), 14 deletions(-) diff --git a/examples/embedding/java/embedding/ExampleDOM2PDF.java b/examples/embedding/java/embedding/ExampleDOM2PDF.java index 674a11191..17f2dfa37 100644 --- a/examples/embedding/java/embedding/ExampleDOM2PDF.java +++ b/examples/embedding/java/embedding/ExampleDOM2PDF.java @@ -64,9 +64,6 @@ public class ExampleDOM2PDF { // Construct driver Driver driver = new Driver(); - // Setup driver - driver.initialize(); - // Setup Renderer (output format) driver.setRenderer(Driver.RENDER_PDF); diff --git a/examples/embedding/java/embedding/ExampleFO2PDF.java b/examples/embedding/java/embedding/ExampleFO2PDF.java index 6d7a7c564..9238c36ae 100644 --- a/examples/embedding/java/embedding/ExampleFO2PDF.java +++ b/examples/embedding/java/embedding/ExampleFO2PDF.java @@ -48,9 +48,6 @@ public class ExampleFO2PDF { // Construct driver Driver driver = new Driver(); - // Setup driver - driver.initialize(); - // Setup Renderer (output format) driver.setRenderer(Driver.RENDER_PDF); diff --git a/examples/embedding/java/embedding/ExampleObj2PDF.java b/examples/embedding/java/embedding/ExampleObj2PDF.java index ff2419ff3..b59a1a9f5 100644 --- a/examples/embedding/java/embedding/ExampleObj2PDF.java +++ b/examples/embedding/java/embedding/ExampleObj2PDF.java @@ -58,9 +58,6 @@ public class ExampleObj2PDF { // Construct driver Driver driver = new Driver(); - // Setup driver - driver.initialize(); - // Setup Renderer (output format) driver.setRenderer(Driver.RENDER_PDF); diff --git a/examples/embedding/java/embedding/ExampleXML2PDF.java b/examples/embedding/java/embedding/ExampleXML2PDF.java index ec2e065f4..18747e3e4 100644 --- a/examples/embedding/java/embedding/ExampleXML2PDF.java +++ b/examples/embedding/java/embedding/ExampleXML2PDF.java @@ -69,9 +69,6 @@ public class ExampleXML2PDF { // Construct driver Driver driver = new Driver(); - // Setup logger - driver.initialize(); - // Setup Renderer (output format) driver.setRenderer(Driver.RENDER_PDF); diff --git a/src/java/org/apache/fop/apps/Driver.java b/src/java/org/apache/fop/apps/Driver.java index 28ffdff8a..2cfd3447c 100644 --- a/src/java/org/apache/fop/apps/Driver.java +++ b/src/java/org/apache/fop/apps/Driver.java @@ -158,7 +158,7 @@ public class Driver implements Constants { /** * Initializes the Driver object. */ - public void initialize() { + private void initialize() { if (isInitialized()) { throw new IllegalStateException("Driver already initialized"); } diff --git a/src/java/org/apache/fop/servlet/FopServlet.java b/src/java/org/apache/fop/servlet/FopServlet.java index 566b17f4c..1d4223282 100644 --- a/src/java/org/apache/fop/servlet/FopServlet.java +++ b/src/java/org/apache/fop/servlet/FopServlet.java @@ -203,7 +203,6 @@ public class FopServlet extends HttpServlet { //Setup FOP Driver driver = new Driver(); driver.setRenderer(Driver.RENDER_PDF); - driver.initialize(); //Setup output ByteArrayOutputStream out = new ByteArrayOutputStream(); -- 2.39.5