Skip to content
Snippets Groups Projects
Commit 7f4b5cc2 authored by tjc's avatar tjc
Browse files

fix for searching pfam

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@13149 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 8e2ba807
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,7 @@ public class RunPfamSearchThread extends Thread
// Send data
URL url = new URL(pfamUrl);
URLConnection conn = url.openConnection();
conn.setDoOutput(true);
OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
......@@ -70,13 +71,14 @@ public class RunPfamSearchThread extends Thread
new InputStreamReader(conn.getInputStream()));
String urlResults = pfamUrl+"/results?";
String line;
String eta = "10";
String eta = "5";
while ((line = rd.readLine()) != null)
{
int index;
if((index = line.indexOf("jobId=")) > -1)
if((index = line.indexOf("job_id=")) > -1)
{
urlResults = urlResults.concat(line.substring(index));
line = line.substring(index+8, line.length()-2);
urlResults = urlResults.concat("jobId="+line);
}
else if((index = line.indexOf("<estimated_time>")) > -1)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment