Merge branch 'patch/JAL-2976_vaqua4_fallback' into releases/Release_2_10_4_Branch
[jalview.git] / src / jalview / ws / utils / UrlDownloadClient.java
index 86e3f76..448edd9 100644 (file)
@@ -47,7 +47,8 @@ public class UrlDownloadClient
    *          the name of file to save the URLs to
    * @throws IOException
    */
-  public void download(String urlstring, String outfile) throws IOException
+  public static void download(String urlstring, String outfile)
+          throws IOException
   {
     FileOutputStream fos = null;
     ReadableByteChannel rbc = null;
@@ -78,8 +79,8 @@ public class UrlDownloadClient
         }
       } catch (IOException e)
       {
-        System.out
-                .println("Exception while closing download file output stream: "
+        System.out.println(
+                "Exception while closing download file output stream: "
                         + e.getMessage());
       }
       try
@@ -91,7 +92,7 @@ public class UrlDownloadClient
       } catch (IOException e)
       {
         System.out.println("Exception while closing download channel: "
-                        + e.getMessage());
+                + e.getMessage());
       }
       try
       {
@@ -102,7 +103,7 @@ public class UrlDownloadClient
       } catch (IOException e)
       {
         System.out.println("Exception while deleting download temp file: "
-                        + e.getMessage());
+                + e.getMessage());
       }
     }
   }