code: public synchronized Document next() {
          Document next = new StringDocument(nextLine);
          try {
              nextLine = advance();
          } catch (IOException ioe) {
              throw new IOError(ioe);
          }
          return next;
      }
docs: Returns the next document from the file.