[MOBY-guts] biomoby commit
Eddie Kawas
kawas at pub.open-bio.org
Thu Apr 7 22:45:10 UTC 2005
kawas
Thu Apr 7 18:45:10 EDT 2005
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client
In directory pub.open-bio.org:/tmp/cvs-serv5684/org/biomoby/client
Modified Files:
MobyRequest.java
Log Message:
Replaced a deprecated method (StringBufferInputStream) with a supported one.
moby-live/Java/src/main/org/biomoby/client MobyRequest.java,1.8,1.9
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/MobyRequest.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/client/MobyRequest.java 2005/04/07 16:37:02 1.8
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/MobyRequest.java 2005/04/07 22:45:10 1.9
@@ -1,8 +1,8 @@
package org.biomoby.client;
// Defines Web service input, output, access
+import java.io.ByteArrayInputStream;
import java.io.PrintStream;
-import java.io.StringBufferInputStream;
import java.util.Hashtable;
import java.util.Vector;
@@ -533,7 +533,7 @@
Document domDoc = null;
try{
- domDoc = docBuilder.parse(new StringBufferInputStream(responseString));
+ domDoc = docBuilder.parse(new ByteArrayInputStream(responseString.getBytes()));
} catch(org.xml.sax.SAXException saxe){
throw new MobyException("The SOAP payload defining the MOBY Result " +
"could not be parsed: " + saxe);
More information about the MOBY-guts
mailing list