// ===========================================================
// SAX DocumentHandler methods
// ===========================================================
public WikipediaIndexHandler(Directory dir, Language language, int start, int end) {
this.indexer = new Indexer(dir, language);
this.start = start;
this.end = end;
if (start > end && end != 0) {
throw new RuntimeException("\"start\" should be smaller than \"end\": " + start + ", " + end);
}