Package com.thaiopensource.xml.sax
Class Sax2XMLReaderCreator
- java.lang.Object
-
- com.thaiopensource.xml.sax.Sax2XMLReaderCreator
-
- All Implemented Interfaces:
XMLReaderCreator
public class Sax2XMLReaderCreator extends java.lang.Object implements XMLReaderCreator
AnXMLReaderCreatorthat createsXMLReaders using the SAX2XMLReaderFactory. An instance of this class is safe for concurrent access by multiple threads.- Author:
- James Clark
- See Also:
XMLReaderFactory
-
-
Constructor Summary
Constructors Constructor Description Sax2XMLReaderCreator()Constructs aSax2XMLReaderCreatorthat uses system defaults to constructXMLReaders.Sax2XMLReaderCreator(java.lang.String className)Constructs aSax2XMLReaderCreatorthat constructsXMLReaders with the specified class name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xml.sax.XMLReadercreateXMLReader()Creates a newXMLReader.
-
-
-
Constructor Detail
-
Sax2XMLReaderCreator
public Sax2XMLReaderCreator()
Constructs aSax2XMLReaderCreatorthat uses system defaults to constructXMLReaders.
-
Sax2XMLReaderCreator
public Sax2XMLReaderCreator(java.lang.String className)
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 Detail
-
createXMLReader
public org.xml.sax.XMLReader createXMLReader() throws org.xml.sax.SAXExceptionDescription copied from interface:XMLReaderCreatorCreates a newXMLReader.- Specified by:
createXMLReaderin interfaceXMLReaderCreator- Returns:
- a new
XMLReader; nevernull - Throws:
org.xml.sax.SAXException- If anXMLReadercannot be created for any reason
-
-