/**
* 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
* @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);
* 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)