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.
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",