[jdom-interest] How to kill a parser - nicely

Dennis Fuglsang dfuglsang at metamatrix.com
Mon Aug 13 20:31:33 PDT 2001

The answer to this question may be simple, and I hope it is, but is there a
means to stop/terminate the parsing operation before it has completed
reading the entire document? I need to read only the header portion of a
number of potentially large documents and I would like to do it in near
constant time (independent of the document size).  I implemented my own SAX
ContentHandler in the hope that after reading the header information I could
then close the parser.  Well I have not discovered any "nice" way of doing
this yet.  I welcome any suggestions.  Thanks.

dfuglsang at metamatrix.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 2194 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20010813/c67b88b8/attachment.bin

More information about the jdom-interest mailing list