public class Sax2XMLReaderCreator extends Object implements XMLReaderCreator
XMLReaderCreator
that creates XMLReader
s 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 XMLReader s. |
Sax2XMLReaderCreator(String className)
Constructs a
Sax2XMLReaderCreator that constructs XMLReader s with the specified
class name. |
public Sax2XMLReaderCreator()
Sax2XMLReaderCreator
that uses system defaults to construct XMLReader
s.public Sax2XMLReaderCreator(String className)
Sax2XMLReaderCreator
that constructs XMLReader
s 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
XMLReaderCreator
XMLReader
.createXMLReader
in interface XMLReaderCreator
XMLReader
; never null
SAXException
- If an XMLReader
cannot be created for any reason