code: public static ParseState getState(String fname) {
      String [] fields = persData.getProperty(fname, "null" + SEPARATOR + "0").split(SEPARATOR, 2);
      String firstLine;
      long offset;
      
      if (fields.length < 2) {
        System.err.println("Malformed persistent state data found");
        Environment.logInfo("Malformed persistent state data found");
        firstLine = null;
        offset = 0;
      } else {
        firstLine = (fields[0].equals("null") ? null : fields[0]);
        offset = Long.parseLong(fields[1]);
      }
  
      return new ParseState(fname, firstLine, offset);
    }
docs: Read and return the state of parsing for a particular log file.
  
  @param fname the log file for which to read the state