git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-2094 first pass with jalview.api.ColorI interface
[jalview.git]
/
src
/
jalview
/
ws
/
ebi
/
EBIFetchClient.java
diff --git
a/src/jalview/ws/ebi/EBIFetchClient.java
b/src/jalview/ws/ebi/EBIFetchClient.java
index
b09cbaa
..
9f6bc65
100644
(file)
--- a/
src/jalview/ws/ebi/EBIFetchClient.java
+++ b/
src/jalview/ws/ebi/EBIFetchClient.java
@@
-98,13
+98,15
@@
public class EBIFetchClient
* @return the file holding the response
* @throws OutOfMemoryError
*/
* @return the file holding the response
* @throws OutOfMemoryError
*/
- public File fetchDataAsFile(String ids, String format, String s)
+
+ public File fetchDataAsFile(String ids, String format, String s,
+ String ext)
throws OutOfMemoryError
{
File outFile = null;
try
{
throws OutOfMemoryError
{
File outFile = null;
try
{
- outFile = File.createTempFile("jalview", ".xml");
+ outFile = File.createTempFile("jalview", ext);
outFile.deleteOnExit();
fetchData(ids, format, s, outFile);
if (outFile.length() == 0)
outFile.deleteOnExit();
fetchData(ids, format, s, outFile);
if (outFile.length() == 0)