Defines the API that represents a simple SAX parser.
An instance of this class can be obtained from the
javax.xml.parsers.SAXParserFactory.newSAXParser method.
Once an instance of this class is obtained, XML can be parsed from
an InputStream
As the content is parsed by the underlying parser, methods of the
given
org.xml.sax.helpers.DefaultHandler are called.
An implementation of SAXParser is NOT
guaranteed to behave as per the specification if it is used concurrently by
two or more threads. It is recommended to have one instance of the
SAXParser per thread or it is upto the application to
make sure about the use of SAXParser from more than one
thread.
since: JAXP 1.0 version: 1.0 |