X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=src%2Fjalview%2Fio%2FIdentifyFile.java;fp=src%2Fjalview%2Fio%2FIdentifyFile.java;h=f7c42861dcbf6226e15312ced6d1754855d78f1c;hp=14848c77dd9d927bdaf0bc0195c51eaeb08ba5bd;hb=36d803e4a1f98728e91e80de5fa0b95e0cadb0d4;hpb=5b669b6c1a4f1f29b178283a46bc22fcd66aabad diff --git a/src/jalview/io/IdentifyFile.java b/src/jalview/io/IdentifyFile.java index 14848c7..f7c4286 100644 --- a/src/jalview/io/IdentifyFile.java +++ b/src/jalview/io/IdentifyFile.java @@ -20,7 +20,6 @@ */ package jalview.io; -import jalview.jsdev.Constants; import jalview.jsdev.GenericFileAdapter; import java.io.IOException; @@ -148,7 +147,7 @@ public class IdentifyFile // if (data.matches("<(\"[^\"]*\"|'[^']*'|[^'\">])*>")) if (data.matches("])*>")) // BH was (?i)rnaml, but JavaScript regex does not support (?i); data is already upper case { - reply = Constants.Html_FILE_DESC; + reply = GenericFileAdapter.Html_FILE_DESC; break; } @@ -160,7 +159,7 @@ public class IdentifyFile if (data.indexOf("{\"") > -1) { - reply = Constants.JSON_FILE_DESC; + reply = GenericFileAdapter.JSON_FILE_DESC; break; } if ((data.length() < 1) || (data.indexOf("#") == 0)) @@ -290,7 +289,7 @@ public class IdentifyFile } else if (data.matches("\\s*\\d+\\s+\\d+\\s*")) { - reply = Constants.Phylip_FILE_DESC; + reply = GenericFileAdapter.Phylip_FILE_DESC; break; }