X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fproject%2FJalview2XML.java;h=41dd2f976fb5cdad0838a5080d23c1f27381bd20;hb=070cda5fcdc40af294bf8267f9c32104ce9bfd82;hp=fa104a6d3e1c065632fae40fafaa017303379dae;hpb=d9f0a24d9662a0b530fd79b51108dd074d03d6e0;p=jalview.git diff --git a/src/jalview/project/Jalview2XML.java b/src/jalview/project/Jalview2XML.java index fa104a6..41dd2f9 100644 --- a/src/jalview/project/Jalview2XML.java +++ b/src/jalview/project/Jalview2XML.java @@ -214,21 +214,9 @@ public class Jalview2XML // BH 2018 we add the .jvp binary extension to J2S so that // it will declare that binary when we do the file save from the browser - private static void addJ2SBinaryType(String ext) - { - ext = "." + ext + "?"; - - /** - * @j2sNative - * - * J2S._binaryTypes.push(ext); - * - */ - } - static { - addJ2SBinaryType(".jvp?"); + Platform.addJ2SBinaryType(".jvp?"); } private static final String VIEWER_PREFIX = "viewer_"; @@ -2791,8 +2779,7 @@ public class Jalview2XML // BH 2018 allow for bytes already attached to File object try { String file = (ofile instanceof File ? ((File) ofile).getCanonicalPath() : ofile.toString()); - byte[] bytes = /** @j2sNative ofile._bytes || */ - null; + byte[] bytes = Platform.getFileBytes((File) ofile); URL url = null; errorMessage = null; uniqueSetSuffix = null;