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.SAXParserThis 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 protectedSAXParserImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleangetFeature(java.lang.String name)org.xml.sax.ParsergetParser()Deprecated.java.lang.ObjectgetProperty(java.lang.String name)org.xml.sax.XMLReadergetXMLReader()booleanisNamespaceAware()booleanisValidating()static SAXParserImplnewInstance(java.util.Map features)voidsetFeature(java.lang.String name, boolean value)voidsetProperty(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.SAXExceptionDeprecated.To support SAX1 interface, we'll need to use an adapter.- Specified by:
getParserin classjavax.xml.parsers.SAXParser- Throws:
org.xml.sax.SAXException
-
getXMLReader
public org.xml.sax.XMLReader getXMLReader()
- Specified by:
getXMLReaderin classjavax.xml.parsers.SAXParser
-
isNamespaceAware
public boolean isNamespaceAware()
- Specified by:
isNamespaceAwarein classjavax.xml.parsers.SAXParser
-
isValidating
public boolean isValidating()
- Specified by:
isValidatingin 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:
setPropertyin classjavax.xml.parsers.SAXParser- Throws:
org.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedException
-
getProperty
public java.lang.Object getProperty(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException- Specified by:
getPropertyin classjavax.xml.parsers.SAXParser- Throws:
org.xml.sax.SAXNotRecognizedExceptionorg.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.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedException
-
getFeature
public boolean getFeature(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException- Throws:
org.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedException
-
-