+ /**
+ *
+ * @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;
+ }
+ public String getInFile()
+ {
+ if (inFile!=null)
+ {
+ return inFile.getAbsolutePath()+" ("+index+")";
+ }
+ else
+ {
+ return "From Paste + ("+index+")";
+ }
+ }
+
+ public Reader getReader() throws IOException
+ {
+ if (dataIn!=null && dataIn.ready())
+ {
+ return dataIn;
+ }
+ return null;
+ }