[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Tue Jan 29 21:58:12 UTC 2008


gordonp
Tue Jan 29 16:58:11 EST 2008
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/util
In directory dev.open-bio.org:/tmp/cvs-serv10678/src/main/org/biomoby/client/util

Modified Files:
	Base64Coder.java 
Log Message:
Made decoder whitespace-tolerant of input Strings
moby-live/Java/src/main/org/biomoby/client/util Base64Coder.java,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/util/Base64Coder.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/util/Base64Coder.java	2008/01/17 17:08:12	1.1
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/util/Base64Coder.java	2008/01/29 21:58:11	1.2
@@ -101,7 +101,7 @@
 * @throws   IllegalArgumentException if the input is not valid Base64 encoded data.
 */
 public static byte[] decode (String s) {
-   return decode(s.toCharArray()); }
+   return decode(s.replaceAll("\\s+", "").toCharArray()); }
 
 /**
 * Decodes a byte array from Base64 format.




More information about the MOBY-guts mailing list