X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2Futils%2FUrlDownloadClient.java;h=448edd9831c1015036ccc77fcd40202da64255de;hb=fab471e8ebef16e3cb7328f46b83c3c9c0b8abac;hp=86e3f76b5c3a4550f14a7ba59bd651bd99df3eae;hpb=a1bf90058be8be92554ecbc5868982dcdbed5a80;p=jalview.git diff --git a/src/jalview/ws/utils/UrlDownloadClient.java b/src/jalview/ws/utils/UrlDownloadClient.java index 86e3f76..448edd9 100644 --- a/src/jalview/ws/utils/UrlDownloadClient.java +++ b/src/jalview/ws/utils/UrlDownloadClient.java @@ -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()); } } }