Package org.ccil.cowan.tagsoup.jaxp
Class SAXFactoryImpl
- java.lang.Object
-
- javax.xml.parsers.SAXParserFactory
-
- org.ccil.cowan.tagsoup.jaxp.SAXFactoryImpl
-
public class SAXFactoryImpl extends javax.xml.parsers.SAXParserFactory
This is a simple implementation of JAXPSAXParserFactory
, to allow easier integration of TagSoup with the default JDK xml processing stack.- Author:
- Tatu Saloranta (cowtowncoder@yahoo.com)
-
-
Constructor Summary
Constructors Constructor Description SAXFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getFeature(java.lang.String name)
Returns whether the specified property will be enabled or disabled on reader instances constructed by this factory.javax.xml.parsers.SAXParser
newSAXParser()
Creates a new instance ofSAXParser
using the currently configured factory parameters.void
setFeature(java.lang.String name, boolean value)
Defines that the specified feature is to enabled/disabled (as per second argument) on reader instances created by this factory.
-
-
-
Method Detail
-
newSAXParser
public javax.xml.parsers.SAXParser newSAXParser() throws javax.xml.parsers.ParserConfigurationException
Creates a new instance ofSAXParser
using the currently configured factory parameters.- Specified by:
newSAXParser
in classjavax.xml.parsers.SAXParserFactory
- Throws:
javax.xml.parsers.ParserConfigurationException
-
setFeature
public void setFeature(java.lang.String name, boolean value) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXNotRecognizedException, org.xml.sax.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 classjavax.xml.parsers.SAXParserFactory
- Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
-
getFeature
public boolean getFeature(java.lang.String name) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
Returns whether the specified property will be enabled or disabled on reader instances constructed by this factory.- Specified by:
getFeature
in classjavax.xml.parsers.SAXParserFactory
- Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
-
-