if (docID>0 && !forever) { throw new NoMoreDataException(); } addBytes(DOC_TEXT.length()); return new DocData("doc"+newdocid(),DOC_TEXT, null, null, null);
// return a new docid return docID++;
return 0; // not applicable
super.resetInputs(); docID = 0;