Blame SOURCES/ws-jaxme-use-commons-codec.patch

22ee4d
--- ./src/jaxme/org/apache/ws/jaxme/util/Base64Binary.java.sav	2007-02-12 12:33:45.000000000 -0500
22ee4d
+++ ./src/jaxme/org/apache/ws/jaxme/util/Base64Binary.java	2007-02-12 12:35:20.000000000 -0500
22ee4d
@@ -18,8 +18,7 @@
22ee4d
 
22ee4d
 import java.io.IOException;
22ee4d
 
22ee4d
-import sun.misc.BASE64Decoder;
22ee4d
-import sun.misc.BASE64Encoder;
22ee4d
+import org.apache.commons.codec.binary.Base64;
22ee4d
 
22ee4d
 
22ee4d
 /** A utility class for working with base64 encoding.
22ee4d
@@ -37,13 +36,13 @@
22ee4d
 	 * base64 encoded byte array.
22ee4d
 	 */
22ee4d
 	public static byte[] decode(String pValue) throws IOException {
22ee4d
-		return (new BASE64Decoder()).decodeBuffer(pValue);
22ee4d
+		return (new Base64()).decode(pValue.getBytes());
22ee4d
 	}
22ee4d
 
22ee4d
 	/** Converts the base64 encoded byte array pValue
22ee4d
 	 * into a string.
22ee4d
 	 */
22ee4d
 	public static String encode(byte[] pValue) {
22ee4d
-		return (new BASE64Encoder()).encode(pValue);
22ee4d
+		return new String((new Base64()).encodeBase64(pValue));
22ee4d
 	}
22ee4d
 }