]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Use non-deprecated ways to get a default user agent.
authorJeremias Maerki <jeremias@apache.org>
Tue, 21 Mar 2006 13:23:54 +0000 (13:23 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 21 Mar 2006 13:23:54 +0000 (13:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_API_Finalization@387522 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/apps/Fop.java

index 37ee50e0895d346e9b8fbf789882beae4a16e542..05f7cf900b51cfc7f71634cb494b0bfdce6c3d9a 100644 (file)
@@ -71,7 +71,7 @@ public class Fop {
 
         foUserAgent = ua;
         if (foUserAgent == null) {
-            foUserAgent = new FOUserAgent();
+            foUserAgent = FopFactory.newInstance().newFOUserAgent();
         }
         
         this.stream = stream;
@@ -91,7 +91,7 @@ public class Fop {
 
         foUserAgent = ua;
         if (foUserAgent == null) {
-            foUserAgent = new FOUserAgent();
+            foUserAgent = FopFactory.newInstance().newFOUserAgent();
         }
         
         createDefaultHandler();
@@ -105,7 +105,7 @@ public class Fop {
      */
     public Fop(String outputFormat) {
         this.outputFormat = outputFormat;
-        foUserAgent = new FOUserAgent();
+        foUserAgent = FopFactory.newInstance().newFOUserAgent();
     }
 
     /**