org.ccil.cowan.tagsoup.jaxp
Class SAXParserImpl

java.lang.Object
  extended by javax.xml.parsers.SAXParser
      extended by org.ccil.cowan.tagsoup.jaxp.SAXParserImpl

public class SAXParserImpl
extends javax.xml.parsers.SAXParser

This is a simple implementation of JAXP SAXParser, to allow easier integration of TagSoup with the default JDK xml processing stack.

Author:
Tatu Saloranta (cowtowncoder@yahoo.com)

Constructor Summary
protected SAXParserImpl()
           
 
Method Summary
 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)
           
 
Methods inherited from class javax.xml.parsers.SAXParser
getSchema, isXIncludeAware, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXParserImpl

protected SAXParserImpl()
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 class javax.xml.parsers.SAXParser
Throws:
org.xml.sax.SAXException

getXMLReader

public org.xml.sax.XMLReader getXMLReader()
Specified by:
getXMLReader in class javax.xml.parsers.SAXParser

isNamespaceAware

public boolean isNamespaceAware()
Specified by:
isNamespaceAware in class javax.xml.parsers.SAXParser

isValidating

public boolean isValidating()
Specified by:
isValidating in class javax.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 class javax.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 class javax.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


Licence: Academic Free License 3.0 and/or GPL 2.0