]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Switching to the Commons variant for the base64 encoding/decoding.
authorJeremias Maerki <jeremias@apache.org>
Wed, 5 Apr 2006 18:37:22 +0000 (18:37 +0000)
committerJeremias Maerki <jeremias@apache.org>
Wed, 5 Apr 2006 18:37:22 +0000 (18:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@391698 13f79535-47bb-0310-9956-ffa450edef68

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

index 0d604f48cce10b37251c470e9c9f0b27b5144cd7..182b49f1b71abce679a011fa64be132ae42e0450 100644 (file)
@@ -35,9 +35,8 @@ import org.apache.commons.logging.Log;
 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 @@ public class FOURIResolver
         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",