protected BufferedReader dataIn=null;
protected String errormessage="UNITIALISED SOURCE";
protected boolean error=true;
+ protected String warningMessage=null;
/**
* size of readahead buffer used for when initial stream position is marked.
*/
throw new IOException("Implementation Error: Reset called for invalid source.");
}
}
+ /**
+ *
+ * @return true if there is a warning for the user
+ */
+ public boolean hasWarningMessage() {
+ return (warningMessage!=null && warningMessage.length()>0);
+ }
+ /**
+ *
+ * @return empty string or warning message about file that was just parsed.
+ */
+ public String getWarningMessage() {
+ return warningMessage;
+ }
}