[MOBY-guts] biomoby commit

Eddie Kawas kawas at pub.open-bio.org
Mon Aug 29 22:59:35 UTC 2005


kawas
Mon Aug 29 18:59:35 EDT 2005
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/applets/shared
In directory pub.open-bio.org:/tmp/cvs-serv16318/org/biomoby/client/ui/graphical/applets/shared

Modified Files:
	Construct.java 
Log Message:
changed the method in which the resources script was accessed
ed

moby-live/Java/src/main/org/biomoby/client/ui/graphical/applets/shared Construct.java,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/applets/shared/Construct.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/ui/graphical/applets/shared/Construct.java	2005/04/07 16:42:27	1.1
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/applets/shared/Construct.java	2005/08/29 22:59:35	1.2
@@ -1,8 +1,10 @@
 package org.biomoby.client.ui.graphical.applets.shared;
 
 import java.io.ByteArrayInputStream;
+import java.io.FileInputStream;
 import java.io.InputStream;
 import java.io.InputStreamReader;
+import java.net.URL;
 import java.util.ArrayList;
 import java.util.HashMap;
 
@@ -66,7 +68,7 @@
 			// create an empty model
 			Model model = new ModelMem();
 
-			InputStream in = (new ByteArrayInputStream(new RESOURCE().getRESOURCES(url).getBytes()));
+			InputStream in = new URL(url).openStream();
 
 			// read the RDF/XML data
 			model.read(new InputStreamReader(in), "");




More information about the MOBY-guts mailing list