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

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