X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FScoreMatrixFile.java;h=d28c511811bb83b48e1ab6e01ea68f53ae18f6a8;hb=e4496f5b27c5a01a1cc494653bd3f9f49080d544;hp=3a7ff4fc6d795e48efaaf811ce5bdba99bd10d46;hpb=dfc0108321583d7a9b88357b079316397d3a107f;p=jalview.git diff --git a/src/jalview/io/ScoreMatrixFile.java b/src/jalview/io/ScoreMatrixFile.java index 3a7ff4f..d28c511 100644 --- a/src/jalview/io/ScoreMatrixFile.java +++ b/src/jalview/io/ScoreMatrixFile.java @@ -53,14 +53,28 @@ public class ScoreMatrixFile extends AlignFile implements boolean hasGuideColumn; /** - * Constructor + * Constructor given a file reader. The file is parsed immediately and if + * successful, the score model registered with the ScoreModels singleton. * * @param source * @throws IOException */ public ScoreMatrixFile(FileParse source) throws IOException { - super(false, source); + super(true, source); + } + + /** + * Constructor given a file reader. The data is optionally parsed immediately. + * + * @param parseImmediately + * @param source + * @throws IOException + */ + public ScoreMatrixFile(boolean parseImmediately, FileParse source) + throws IOException + { + super(parseImmediately, source); } @Override