Class Sax2XMLReaderCreator
java.lang.Object
com.thaiopensource.xml.sax.Sax2XMLReaderCreator
- All Implemented Interfaces:
XMLReaderCreator
An
XMLReaderCreator that creates XMLReaders using the SAX2 XMLReaderFactory.
An instance of this class is safe for concurrent access by multiple threads.- Author:
- James Clark
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aSax2XMLReaderCreatorthat uses system defaults to constructXMLReaders.Sax2XMLReaderCreator(String className) Constructs aSax2XMLReaderCreatorthat constructsXMLReaders with the specified class name. -
Method Summary
-
Constructor Details
-
Sax2XMLReaderCreator
public Sax2XMLReaderCreator()Constructs aSax2XMLReaderCreatorthat uses system defaults to constructXMLReaders. -
Sax2XMLReaderCreator
Constructs aSax2XMLReaderCreatorthat constructsXMLReaders with the specified class name.- Parameters:
className- the fully-qualified name of the class implementingXMLReader; ifnullequivalent to the no-argument constructor
-
-
Method Details
-
createXMLReader
Description copied from interface:XMLReaderCreatorCreates a newXMLReader.- Specified by:
createXMLReaderin interfaceXMLReaderCreator- Returns:
- a new
XMLReader; nevernull - Throws:
SAXException- If anXMLReadercannot be created for any reason
-