X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FPlatform.java;h=d6627c46e6df84486e0f80a7581664bb37a44714;hb=dd3701bd1390e976e2564f2def6c77ba8a2f84a8;hp=ef509df0abce4f1d833295c47f30b02675d9272f;hpb=60c6ea6da3878e1807c961046296f578605bcf39;p=jalview.git diff --git a/src/jalview/util/Platform.java b/src/jalview/util/Platform.java index ef509df..d6627c4 100644 --- a/src/jalview/util/Platform.java +++ b/src/jalview/util/Platform.java @@ -543,23 +543,22 @@ public class Platform * @param is * @param outFile * @throws IOException - * if the file cannot be created or there is a problem reading the - * input stream. + * if the file cannot be created or there is a problem + * reading the input stream. */ public static void streamToFile(InputStream is, File outFile) throws IOException { + if (isJS() && /** + * @j2sNative outFile.setBytes$O && outFile.setBytes$O(is) && + */ + true) + { + return; + } FileOutputStream fio = new FileOutputStream(outFile); try { - if (isJS() - && /** - * @j2sNative outFile.setBytes$O && outFile.setBytes$O(is) && - */ - true) - { - return; - } byte[] bb = new byte[32 * 1024]; int l; while ((l = is.read(bb)) > 0)