}\r
\r
\r
- public File fetchDataAsFile(String ids, String f, String s)\r
+ public File fetchDataAsFile(String ids, String f, String s) throws OutOfMemoryError\r
{\r
String[] data = fetchData(ids, f, s);\r
+ // TODO: after JV 2.4 - test data==null and pass error(s) back up if possible (OutOfMemoryErrors are usual problem)\r
File outFile = null;\r
try\r
{\r
*\r
* @return Raw string array result of query set\r
*/\r
- public String[] fetchData(String ids, String f, String s)\r
+ public String[] fetchData(String ids, String f, String s) throws OutOfMemoryError\r
{\r
// Need to split\r
// ids of the form uniprot:25KD_SARPE;ADHR_DROPS;\r
return fetchBatch(querystring.toString(), db, f, s);\r
}\r
\r
- public String[] fetchBatch(String ids, String db, String f, String s)\r
+ public String[] fetchBatch(String ids, String db, String f, String s) throws OutOfMemoryError\r
{\r
// max 50 ids can be added at one time\r
try\r
}\r
catch (OutOfMemoryError er)\r
{\r
+ \r
System.out.println("OUT OF MEMORY DOWNLOADING QUERY FROM " + db + ":\n" +\r
ids);\r
+ throw er;\r
}\r
- return null;\r
+ // return null;\r
}\r
catch (Exception ex)\r
{\r