X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FAlignFile.java;h=cea28705553b083dd7ab5ea083ec4c3e53d34048;hb=7a1b05d3e521e5d532ad03b23a33ab21675ebd1f;hp=7b1e84ad13580a1efd2244a16de90d92474377f6;hpb=0669bcd76c254141146c1fc2628812c782571c0b;p=jalview.git diff --git a/src/jalview/io/AlignFile.java b/src/jalview/io/AlignFile.java index 7b1e84a..cea2870 100755 --- a/src/jalview/io/AlignFile.java +++ b/src/jalview/io/AlignFile.java @@ -75,9 +75,9 @@ public abstract class AlignFile extends FileParse /** * true if parse() has been called */ - private boolean parseCalled; + private boolean parseCalled = false; - private boolean parseImmediately; + private boolean parseImmediately = true; /** * @return if doParse() was called at construction time @@ -112,7 +112,7 @@ public abstract class AlignFile extends FileParse * @param sourceType * What type of file to read from (File, URL, Pasted String) */ - public AlignFile(String dataObject, DataSourceType sourceType) + public AlignFile(Object dataObject, DataSourceType sourceType) throws IOException { this(true, dataObject, sourceType); @@ -130,9 +130,10 @@ public abstract class AlignFile extends FileParse * What type of file to read from (File, URL) * @throws IOException */ - public AlignFile(boolean parseImmediately, String dataObject, + public AlignFile(boolean parseImmediately, Object dataObject, DataSourceType sourceType) throws IOException { + // BH allows File or String super(dataObject, sourceType); initData(); if (parseImmediately)