X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FBLCFile.java;h=6317e83c5913ce941ba85365800e5eaffdfd95dd;hb=4d890895e6aabfc36d45d3b53781ee2cf5cfafdc;hp=c7cf2d68f7056967bb26857fceeb5b8deddaeed2;hpb=3412b273e964fb1a9d22564b04a5f0c827ec2461;p=jalview.git diff --git a/src/jalview/io/BLCFile.java b/src/jalview/io/BLCFile.java index c7cf2d6..6317e83 100755 --- a/src/jalview/io/BLCFile.java +++ b/src/jalview/io/BLCFile.java @@ -48,15 +48,16 @@ public class BLCFile extends AlignFile * * @param inFile * DOCUMENT ME! - * @param type + * @param sourceType * DOCUMENT ME! * * @throws IOException * DOCUMENT ME! */ - public BLCFile(String inFile, String type) throws IOException + public BLCFile(String inFile, DataSourceType sourceType) + throws IOException { - super(inFile, type); + super(inFile, sourceType); } public BLCFile(FileParse source) throws IOException @@ -67,6 +68,7 @@ public class BLCFile extends AlignFile /** * DOCUMENT ME! */ + @Override public void initData() { super.initData(); @@ -89,6 +91,7 @@ public class BLCFile extends AlignFile /** * DOCUMENT ME! */ + @Override public void parse() throws IOException { StringBuffer headerLines = new StringBuffer(); @@ -153,7 +156,7 @@ public class BLCFile extends AlignFile } } while (!idsFound); if (line == null) - { + { break; // end of file. } int starCol = line.indexOf("*"); @@ -215,22 +218,13 @@ public class BLCFile extends AlignFile /** * DOCUMENT ME! * - * @return DOCUMENT ME! - */ - public String print() - { - return print(getSeqsAsArray()); - } - - /** - * DOCUMENT ME! - * * @param s * DOCUMENT ME! * * @return DOCUMENT ME! */ - public String print(SequenceI[] s) + @Override + public String print(SequenceI[] s, boolean jvsuffix) { StringBuffer out = new StringBuffer(); /** @@ -244,7 +238,7 @@ public class BLCFile extends AlignFile while ((i < s.length) && (s[i] != null)) { - out.append(">" + printId(s[i])); + out.append(">" + printId(s[i], jvsuffix)); if (s[i].getDescription() != null) { out.append(" " + s[i].getDescription());