X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FBLCFile.java;h=1b938923ed8a079565b2d8c19b8386be62a08b76;hb=5ac664f47c4da867bdbc2f7376e5079a97b74b20;hp=071e814403598dbb98c12b2a5f709bfef4c8bdea;hpb=17e77c3f2949a0729322b4a8d907f3f34b6a9914;p=jalview.git diff --git a/src/jalview/io/BLCFile.java b/src/jalview/io/BLCFile.java index 071e814..1b93892 100755 --- a/src/jalview/io/BLCFile.java +++ b/src/jalview/io/BLCFile.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9) - * Copyright (C) 2015 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -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(); @@ -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()); @@ -252,10 +246,7 @@ public class BLCFile extends AlignFile out.append(newline); - if (s[i].getSequence().length > max) - { - max = s[i].getSequence().length; - } + max = Math.max(max, s[i].getLength()); i++; }