I think the problem is that in Driver.java:
public void tokenize(InputSource is, int bufferSize)
throws SAXException, IOException {
if (is == null) {
throw new IllegalArgumentException("InputSource was null.");
}
tokenizer.start();
confidence = Confidence.TENTATIVE;
rewindableInputStream = null;
tokenizer.initLocation(is.getPublicId(), is.getSystemId());
...
The call to tokenizer.start() initializes the HTML Document object with a null Locator. I think it would work correctly if tokenizer.initLocation() preceded tokenizer.start().
I think the problem is that in
Driver.java:The call to
tokenizer.start()initializes the HTMLDocumentobject with a nullLocator. I think it would work correctly iftokenizer.initLocation()precededtokenizer.start().