X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2Febi%2FEBIFetchClient.java;h=3e8c55ed621b8f9d3a60c1d3f81911122211b139;hb=d2bf6a7b7e1bbb4774f13ba2733487ae6b7aae6d;hp=1dff32f1bd26d3a15324a2a014909c729bb05bb9;hpb=eaa8cc6ff032ac14e2bd96ee3bd27e80cfa74a25;p=jalview.git diff --git a/src/jalview/ws/ebi/EBIFetchClient.java b/src/jalview/ws/ebi/EBIFetchClient.java index 1dff32f..3e8c55e 100644 --- a/src/jalview/ws/ebi/EBIFetchClient.java +++ b/src/jalview/ws/ebi/EBIFetchClient.java @@ -91,7 +91,7 @@ public class EBIFetchClient * @param format * the format wanted * @param extension - * for the temporary file to hold response + * for the temporary file to hold response (without separator) * @return the file holding the response * @throws OutOfMemoryError */ @@ -102,7 +102,7 @@ public class EBIFetchClient File outFile = null; try { - outFile = File.createTempFile("jalview", ext); + outFile = File.createTempFile("jalview", "." + ext); outFile.deleteOnExit(); fetchData(ids, format, outFile); if (outFile.length() == 0) @@ -139,7 +139,8 @@ public class EBIFetchClient } // note: outFile is currently always specified, so return value is null - String[] rslt = fetchBatch(querystring.toString(), database, format, outFile); + String[] rslt = fetchBatch(querystring.toString(), database, format, + outFile); return (rslt != null && rslt.length > 0 ? rslt : null); } @@ -241,8 +242,7 @@ public class EBIFetchClient return null; } System.err.println("Unexpected exception when retrieving from " - + database - + "\nQuery was : '" + ids + "'"); + + database + "\nQuery was : '" + ids + "'"); ex.printStackTrace(System.err); return null; } finally