/** use reuters and the exhaust mechanism, but to be faster, add 20 docs only... */
public static class Reuters20DocMaker extends ReutersDocMaker {
private int nDocs=0;
protected synchronized DocData getNextDocData() throws Exception {
if (nDocs>=20 && !forever) {
throw new NoMoreDataException();
}
nDocs++;
return super.getNextDocData();
}