public class Sax2XMLReaderCreator extends Object implements XMLReaderCreator
XMLReaderCreator that creates XMLReaders using the SAX2 XMLReaderFactory.
An instance of this class is safe for concurrent access by multiple threads.XMLReaderFactory| Constructor and Description |
|---|
Sax2XMLReaderCreator()
Constructs a
Sax2XMLReaderCreator that uses system defaults to construct XMLReaders. |
Sax2XMLReaderCreator(String className)
Constructs a
Sax2XMLReaderCreator that constructs XMLReaders with the specified
class name. |
public Sax2XMLReaderCreator()
Sax2XMLReaderCreator that uses system defaults to construct XMLReaders.public Sax2XMLReaderCreator(String className)
Sax2XMLReaderCreator that constructs XMLReaders with the specified
class name.className - the fully-qualified name of the class implementing XMLReader;
if null equivalent to the no-argument constructorpublic XMLReader createXMLReader() throws SAXException
XMLReaderCreatorXMLReader.createXMLReader in interface XMLReaderCreatorXMLReader; never nullSAXException - If an XMLReader cannot be created for any reason