long end;
+ /**
+ * true if parse() has been called
+ */
private boolean parseCalled;
+ private boolean parseImmediately;
+
+ /**
+ * @return if doParse() was called at construction time
+ */
+ protected boolean isParseImmediately()
+ {
+ return parseImmediately;
+ }
+
/**
* Creates a new AlignFile object.
*/
{
super(source);
initData();
+
+ // stash flag in case parse needs to know if it has to autoconfigure or was
+ // configured after construction
+ this.parseImmediately = parseImmediately;
+
if (parseImmediately)
{
doParse();