public class Sax2XMLReaderCreator extends java.lang.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(java.lang.String className)
Constructs a
Sax2XMLReaderCreator that constructs XMLReaders with the specified
class name. |
| Modifier and Type | Method and Description |
|---|---|
org.xml.sax.XMLReader |
createXMLReader()
Creates a new
XMLReader. |
public Sax2XMLReaderCreator()
Sax2XMLReaderCreator that uses system defaults to construct XMLReaders.public Sax2XMLReaderCreator(java.lang.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 org.xml.sax.XMLReader createXMLReader()
throws org.xml.sax.SAXException
XMLReaderCreatorXMLReader.createXMLReader in interface XMLReaderCreatorXMLReader; never nullorg.xml.sax.SAXException - If an XMLReader cannot be created for any reason