Package com.thaiopensource.xml.sax
Class Sax2XMLReaderCreator
- java.lang.Object
-
- com.thaiopensource.xml.sax.Sax2XMLReaderCreator
-
- All Implemented Interfaces:
XMLReaderCreator
public class Sax2XMLReaderCreator extends Object implements XMLReaderCreator
AnXMLReaderCreator
that createsXMLReader
s 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 aSax2XMLReaderCreator
that uses system defaults to constructXMLReader
s.Sax2XMLReaderCreator(String className)
Constructs aSax2XMLReaderCreator
that constructsXMLReader
s with the specified class name.
-
-
-
Constructor Detail
-
Sax2XMLReaderCreator
public Sax2XMLReaderCreator()
Constructs aSax2XMLReaderCreator
that uses system defaults to constructXMLReader
s.
-
Sax2XMLReaderCreator
public Sax2XMLReaderCreator(String className)
Constructs aSax2XMLReaderCreator
that constructsXMLReader
s with the specified class name.- Parameters:
className
- the fully-qualified name of the class implementingXMLReader
; ifnull
equivalent to the no-argument constructor
-
-
Method Detail
-
createXMLReader
public XMLReader createXMLReader() throws SAXException
Description copied from interface:XMLReaderCreator
Creates a newXMLReader
.- Specified by:
createXMLReader
in interfaceXMLReaderCreator
- Returns:
- a new
XMLReader
; nevernull
- Throws:
SAXException
- If anXMLReader
cannot be created for any reason
-
-