[MOBY-guts] biomoby commit
Paul Gordon
gordonp at dev.open-bio.org
Thu Jan 17 17:12:00 UTC 2008
gordonp
Thu Jan 17 12:11:59 EST 2008
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data
In directory dev.open-bio.org:/tmp/cvs-serv22799/src/main/org/biomoby/shared/data
Modified Files:
MobyDataBytes.java
Log Message:
Changed Base64 coding from Axis util to org.biomoby.client.util.Base64Coder
moby-live/Java/src/main/org/biomoby/shared/data MobyDataBytes.java,1.8,1.9
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataBytes.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataBytes.java 2007/11/30 17:42:15 1.8
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataBytes.java 2008/01/17 17:11:59 1.9
@@ -154,7 +154,7 @@
if(bytes == null){
throw new MobyException("The given byte data to Base64 encode was null");
}
- String contents = org.apache.axis.encoding.Base64.encode(bytes);
+ String contents = new String(org.biomoby.client.util.Base64Coder.encode(bytes));
if(contents == null){
throw new MobyException("The byte contents could not be encoded in Base64 format");
}
@@ -211,6 +211,6 @@
* The same as getObject, but doesn't require a cast of the result
*/
public byte[] getBytes(){
- return org.apache.axis.encoding.Base64.decode(((MobyDataString) get(ENCODED_MEMBER_NAME)).getValue());
+ return org.biomoby.client.util.Base64Coder.decode(((MobyDataString) get(ENCODED_MEMBER_NAME)).getValue());
}
}
More information about the MOBY-guts
mailing list