I tried asking this question on the user's list with no luck.

I've a project which involves parsing very large documents inside a user
interface. I'm using a
SAXParser.

I'd like to be able to stop the parse by calling parsingThread.interrupt() from

another thread. I've crawled the Xerces 1.4.1 source and not found any
"interrupt"s
(except in the license disclaimer).

My workaround was to create a handler that checks
Thread.currentThread().isInterrupted() before doing anything. It then throws a
subclass of SAXParserException called SAXParseInterruptedException. This
approach seems inappropriately placed. I think it should be inside Xerces
parsing loop, unless some other mechanism for stopping a parse already exists
and I just missed it.

Once Xerces starts a parse, can it be stopped? How?

Thanks,

Dave





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to