xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r391698 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/apps/FOURIResolver.java
Date Wed, 05 Apr 2006 18:37:23 GMT
Author: jeremias
Date: Wed Apr  5 11:37:22 2006
New Revision: 391698

URL: http://svn.apache.org/viewcvs?rev=391698&view=rev
Log:
Switching to the Commons variant for the base64 encoding/decoding.

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/apps/FOURIResolver.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/apps/FOURIResolver.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/apps/FOURIResolver.java?rev=391698&r1=391697&r2=391698&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/apps/FOURIResolver.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/apps/FOURIResolver.java Wed Apr  5 11:37:22
2006
@@ -35,9 +35,8 @@
 import org.apache.commons.logging.LogFactory;
 
 // base64 support for "data" urls
-// TODO Move Base64 support from Batik to XML Graphics Commons
-import org.apache.batik.util.Base64DecodeStream;
-import org.apache.batik.util.Base64EncoderStream;
+import org.apache.xmlgraphics.util.io.Base64DecodeStream;
+import org.apache.xmlgraphics.util.io.Base64EncodeStream;
 
 /**
  * Provides FOP specific URI resolution.
@@ -180,7 +179,7 @@
         String combined = username + ":" + password;
         try {
             ByteArrayOutputStream baout = new ByteArrayOutputStream(combined.length() * 2);
-            Base64EncoderStream base64 = new Base64EncoderStream(baout);
+            Base64EncodeStream base64 = new Base64EncodeStream(baout);
             base64.write(combined.getBytes());
             base64.close();
             connection.setRequestProperty("Authorization", 



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message