JAL-1919 code improvement to make PDB sequence fetcher file format configurable....
[jalview.git] / src / jalview / ws / ebi / EBIFetchClient.java
index c33871d..468b7f0 100644 (file)
@@ -97,13 +97,13 @@ public class EBIFetchClient
    * @return the file holding the response
    * @throws OutOfMemoryError
    */
-  public File fetchDataAsFile(String ids, String f, String s)
+  public File fetchDataAsFile(String ids, String f, String s, String ext)
           throws OutOfMemoryError
   {
     File outFile = null;
     try
     {
-      outFile = File.createTempFile("jalview", ".xml");
+      outFile = File.createTempFile("jalview", ext);
       outFile.deleteOnExit();
       fetchData(ids, f, s, outFile);
       if (outFile.length() == 0)