Package org.ccil.cowan.tagsoup.jaxp
Class SAXFactoryImpl
java.lang.Object
javax.xml.parsers.SAXParserFactory
org.ccil.cowan.tagsoup.jaxp.SAXFactoryImpl
This is a simple implementation of JAXP
SAXParserFactory
,
to allow easier integration of TagSoup with the default JDK
xml processing stack.- Author:
- Tatu Saloranta (cowtowncoder@yahoo.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getFeature
(String name) Returns whether the specified property will be enabled or disabled on reader instances constructed by this factory.Creates a new instance ofSAXParser
using the currently configured factory parameters.void
setFeature
(String name, boolean value) Defines that the specified feature is to enabled/disabled (as per second argument) on reader instances created by this factory.Methods inherited from class javax.xml.parsers.SAXParserFactory
getSchema, isNamespaceAware, isValidating, isXIncludeAware, newDefaultInstance, newDefaultNSInstance, newInstance, newInstance, newNSInstance, newNSInstance, setNamespaceAware, setSchema, setValidating, setXIncludeAware
-
Constructor Details
-
SAXFactoryImpl
public SAXFactoryImpl()
-
-
Method Details
-
newSAXParser
Creates a new instance ofSAXParser
using the currently configured factory parameters.- Specified by:
newSAXParser
in classSAXParserFactory
- Throws:
ParserConfigurationException
-
setFeature
public void setFeature(String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException Defines that the specified feature is to enabled/disabled (as per second argument) on reader instances created by this factory.- Specified by:
setFeature
in classSAXParserFactory
- Throws:
ParserConfigurationException
SAXNotRecognizedException
SAXNotSupportedException
-
getFeature
public boolean getFeature(String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException Returns whether the specified property will be enabled or disabled on reader instances constructed by this factory.- Specified by:
getFeature
in classSAXParserFactory
- Throws:
ParserConfigurationException
SAXNotRecognizedException
SAXNotSupportedException
-