org.ccil.cowan.tagsoup.jaxp
Class SAXFactoryImpl

java.lang.Object
  extended by javax.xml.parsers.SAXParserFactory
      extended by org.ccil.cowan.tagsoup.jaxp.SAXFactoryImpl

public class SAXFactoryImpl
extends javax.xml.parsers.SAXParserFactory

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
SAXFactoryImpl()
           
 
Method Summary
 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 of SAXParser 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.
 
Methods inherited from class javax.xml.parsers.SAXParserFactory
getSchema, isNamespaceAware, isValidating, isXIncludeAware, newInstance, newInstance, setNamespaceAware, setSchema, setValidating, setXIncludeAware
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXFactoryImpl

public SAXFactoryImpl()
Method Detail

newSAXParser

public javax.xml.parsers.SAXParser newSAXParser()
                                         throws javax.xml.parsers.ParserConfigurationException
Creates a new instance of SAXParser using the currently configured factory parameters.

Specified by:
newSAXParser in class javax.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 class javax.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 class javax.xml.parsers.SAXParserFactory
Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException


Licence: Academic Free License 3.0 and/or GPL 2.0