[MOBY-guts] biomoby commit

Paul Gordon gordonp at pub.open-bio.org
Mon Nov 22 17:22:23 UTC 2004


gordonp
Mon Nov 22 12:22:22 EST 2004
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client
In directory pub.open-bio.org:/tmp/cvs-serv8696/client

Modified Files:
	CentralImpl.java 
Log Message:
Just got rid of deprecation warnings caused by StringBufferInputStream.  Replaced with ByteArrayInputStream (based on locale-dependent String.getBytes())

moby-live/Java/src/main/org/biomoby/client CentralImpl.java,1.17,1.18
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java	2004/10/18 14:35:06	1.17
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java	2004/11/22 17:22:22	1.18
@@ -203,7 +203,7 @@
 	// parse returned XML
 	Document document = null;
 	try {
-	    document=docBuilder.parse(new StringBufferInputStream(xml));
+	    document=docBuilder.parse(new ByteArrayInputStream(xml.getBytes()));
 	} catch (Exception e) {
 	    throw new MobyException(e.toString());
 	}
@@ -432,7 +432,7 @@
 	    
 	Document document = null;
 	try {
-	    document = docBuilder.parse(new StringBufferInputStream(xml));
+	    document = docBuilder.parse(new ByteArrayInputStream(xml.getBytes()));
 	} catch (Exception e) {
 	    throw new MobyException(e.toString());
 	}
@@ -628,7 +628,7 @@
 	Map results = new HashMap();
 	Document document = null;
 	try {
-	    document = docBuilder.parse(new StringBufferInputStream(result));
+	    document = docBuilder.parse(new ByteArrayInputStream(result.getBytes()));
 	} catch (Exception e) {
 	    throw new MobyException(e.toString());
 	}
@@ -668,7 +668,7 @@
 	// parse returned XML
 	Document document = null;
 	try {
-	    document = docBuilder.parse(new StringBufferInputStream(result));
+	    document = docBuilder.parse(new ByteArrayInputStream(result.getBytes()));
 	} catch (Exception e) {
 	    throw new MobyException(e.toString());
 	}
@@ -710,7 +710,7 @@
 	Map results = new HashMap();
 	Document document = null;
 	try {
-	    document = docBuilder.parse(new StringBufferInputStream(result));}
+	    document = docBuilder.parse(new ByteArrayInputStream(result.getBytes()));}
 	catch(Exception e){throw new MobyException(e.toString());}
 
 	NodeList list = document.getElementsByTagName ("serviceType");
@@ -758,7 +758,7 @@
 	Map results = new HashMap();
 	Document document = null;
 	try {
-	    document = docBuilder.parse(new StringBufferInputStream(result));
+	    document = docBuilder.parse(new ByteArrayInputStream(result.getBytes()));
 	} catch (Exception e) {
 	    throw new MobyException(e.toString());
 	}
@@ -816,7 +816,7 @@
 	Map results = new HashMap();
 	Document document = null;
 	try {
-	    document = docBuilder.parse(new StringBufferInputStream(result));
+	    document = docBuilder.parse(new ByteArrayInputStream(result.getBytes()));
 	} catch (Exception e) {
 	    throw new MobyException(e.toString());
 	}
@@ -893,7 +893,7 @@
 	// parse returned XML
 	Document document = null;
 	try {
-	    document = docBuilder.parse(new StringBufferInputStream (xmlSource));
+	    document = docBuilder.parse(new ByteArrayInputStream (xmlSource.getBytes()));
 	} catch (Exception e) {
 	    throw new MobyException(e.toString());
 	}
@@ -1002,7 +1002,7 @@
 
 	// parse returned XML
 	Document document = null;
-	try{document=docBuilder.parse(new StringBufferInputStream(result));}
+	try{document=docBuilder.parse(new ByteArrayInputStream(result.getBytes()));}
 	catch(Exception e){throw new MobyException(e.toString());}
 
 	Element service = document.getDocumentElement();
@@ -1378,7 +1378,7 @@
 	// parse returned XML
 	Vector v = new Vector();
 	Document document = null;
-	try{document=docBuilder.parse(new StringBufferInputStream(result));}
+	try{document=docBuilder.parse(new ByteArrayInputStream(result.getBytes()));}
 	catch(Exception e){throw new MobyException(e.toString());}
 
 	NodeList list = document.getElementsByTagName ("Relationship");
@@ -1436,7 +1436,7 @@
 	// parse returned XML
 	Map results = new HashMap();
 	Document document = null;
-	try{document=docBuilder.parse(new StringBufferInputStream(result));}
+	try{document=docBuilder.parse(new ByteArrayInputStream(result.getBytes()));}
 	catch(Exception e){throw new MobyException(e.toString());}
 
 	NodeList list = document.getElementsByTagName ("Relationship");
@@ -1493,7 +1493,7 @@
 	// parse returned XML
 	Vector v = new Vector();
 	Document document = null;
-	try{document=docBuilder.parse(new StringBufferInputStream(result));}
+	try{document=docBuilder.parse(new ByteArrayInputStream(result.getBytes()));}
 	catch(Exception e){throw new MobyException(e.toString());}
 
 	NodeList list = document.getElementsByTagName ("Relationship");




More information about the MOBY-guts mailing list