From: BobHanson Date: Sun, 14 Jun 2020 03:10:54 +0000 (-0500) Subject: JAL-3445 BSML BBB file format. X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ba41b3bc778b231c872031472d0dd4e15d53cd16;p=jalview.git JAL-3445 BSML BBB file format. - merge of BSML test branch. - includes BSMLFileTest - preliminary; does not read complement - See Jalview-JS/develop/temp/bbb.dtd.pdf --- diff --git a/src/jalview/io/FileFormat.java b/src/jalview/io/FileFormat.java index cb61740..0ad2901 100644 --- a/src/jalview/io/FileFormat.java +++ b/src/jalview/io/FileFormat.java @@ -373,6 +373,20 @@ public enum FileFormat implements FileFormatI { return true; } + }, BSML("BSML", "bbb", true, false) + { + @Override + public AlignmentFileReaderI getReader(FileParse source) + throws IOException + { + return new BSMLFile(source); + } + + @Override + public AlignmentFileWriterI getWriter(AlignmentI al) + { + return null; + } }; private boolean writable; diff --git a/src/jalview/io/IdentifyFile.java b/src/jalview/io/IdentifyFile.java index b312474..df40ec1 100755 --- a/src/jalview/io/IdentifyFile.java +++ b/src/jalview/io/IdentifyFile.java @@ -330,6 +330,11 @@ public class IdentifyFile reply = FileFormat.Rnaml; break; } + if (upper.substring(lessThan).startsWith("