X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FFileFormat.java;h=a11147c069c17570d168b52572df3422763a1070;hb=9201765247470c08d366abef2713c1c736adf2cb;hp=5a95a9ed02eee4286239a522e415c4b8a5d61b8d;hpb=35ce4609cc8a776b1d85a1f2c2c70aaa106c1a3b;p=jalview.git diff --git a/src/jalview/io/FileFormat.java b/src/jalview/io/FileFormat.java index 5a95a9e..a11147c 100644 --- a/src/jalview/io/FileFormat.java +++ b/src/jalview/io/FileFormat.java @@ -332,6 +332,12 @@ public enum FileFormat implements FileFormatI { return false; } + + @Override + public boolean isIdentifiable() + { + return false; + } }; private boolean writable; @@ -405,4 +411,14 @@ public enum FileFormat implements FileFormatI { return false; } + + /** + * By default, answers true, indicating the format is one that can be + * identified by IdentifyFile. Formats that cannot be identified should + * override this method to return false. + */ + public boolean isIdentifiable() + { + return true; + } }