[pkg-java] r2501 - branches/jaxme/feature/debian/src/jaxme/org/apache/ws/jaxme/util

Marcus Better marcusb-guest at costa.debian.org
Fri Sep 29 07:49:18 UTC 2006


Author: marcusb-guest
Date: 2006-09-29 07:49:16 +0000 (Fri, 29 Sep 2006)
New Revision: 2501

Modified:
   branches/jaxme/feature/debian/src/jaxme/org/apache/ws/jaxme/util/Base64Binary.java
Log:
Bug: encode and decode were swapped.


Modified: branches/jaxme/feature/debian/src/jaxme/org/apache/ws/jaxme/util/Base64Binary.java
===================================================================
--- branches/jaxme/feature/debian/src/jaxme/org/apache/ws/jaxme/util/Base64Binary.java	2006-09-29 05:54:47 UTC (rev 2500)
+++ branches/jaxme/feature/debian/src/jaxme/org/apache/ws/jaxme/util/Base64Binary.java	2006-09-29 07:49:16 UTC (rev 2501)
@@ -35,13 +35,13 @@
 	 * base64 encoded byte array.
 	 */
 	public static byte[] decode(String pValue) throws IOException {
-		return (new Base64()).encode(pValue.getBytes());
+		return (new Base64()).decode(pValue.getBytes());
 	}
 
 	/** Converts the base64 encoded byte array <code>pValue</code>
 	 * into a string.
 	 */
 	public static String encode(byte[] pValue) {
-		return new String((new Base64()).decode(pValue));
+		return new String((new Base64()).encode(pValue));
 	}
 }




More information about the pkg-java-commits mailing list