Package org.ccil.cowan.tagsoup.jaxp
Class SAXParserImpl
- java.lang.Object
-
- javax.xml.parsers.SAXParser
-
- org.ccil.cowan.tagsoup.jaxp.SAXParserImpl
-
public class SAXParserImpl extends javax.xml.parsers.SAXParser
This is a simple implementation of JAXPSAXParser
, to allow easier integration of TagSoup with the default JDK xml processing stack.- Author:
- Tatu Saloranta (cowtowncoder@yahoo.com)
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SAXParserImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
getFeature(java.lang.String name)
org.xml.sax.Parser
getParser()
Deprecated.java.lang.Object
getProperty(java.lang.String name)
org.xml.sax.XMLReader
getXMLReader()
boolean
isNamespaceAware()
boolean
isValidating()
static SAXParserImpl
newInstance(java.util.Map features)
void
setFeature(java.lang.String name, boolean value)
void
setProperty(java.lang.String name, java.lang.Object value)
-
-
-
Method Detail
-
newInstance
public static SAXParserImpl newInstance(java.util.Map features) throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
-
getParser
public org.xml.sax.Parser getParser() throws org.xml.sax.SAXException
Deprecated.To support SAX1 interface, we'll need to use an adapter.- Specified by:
getParser
in classjavax.xml.parsers.SAXParser
- Throws:
org.xml.sax.SAXException
-
getXMLReader
public org.xml.sax.XMLReader getXMLReader()
- Specified by:
getXMLReader
in classjavax.xml.parsers.SAXParser
-
isNamespaceAware
public boolean isNamespaceAware()
- Specified by:
isNamespaceAware
in classjavax.xml.parsers.SAXParser
-
isValidating
public boolean isValidating()
- Specified by:
isValidating
in classjavax.xml.parsers.SAXParser
-
setProperty
public void setProperty(java.lang.String name, java.lang.Object value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
- Specified by:
setProperty
in classjavax.xml.parsers.SAXParser
- Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
-
getProperty
public java.lang.Object getProperty(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
- Specified by:
getProperty
in classjavax.xml.parsers.SAXParser
- Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
-
setFeature
public void setFeature(java.lang.String name, boolean value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
- Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
-
getFeature
public boolean getFeature(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
- Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
-
-