org.ccil.cowan.tagsoup.jaxp

Class SAXFactoryImpl


public class SAXFactoryImpl
extends 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(String name)
Returns whether the specified property will be enabled or disabled on reader instances constructed by this factory.
SAXParser
newSAXParser()
Creates a new instance of SAXParser using the currently configured factory parameters.
void
setFeature(String name, boolean value)
Defines that the specified feature is to enabled/disabled (as per second argument) on reader instances created by this factory.

Constructor Details

SAXFactoryImpl

public SAXFactoryImpl()

Method Details

getFeature

public boolean getFeature(String name)
            throws ParserConfigurationException,
                   SAXNotRecognizedException,
                   SAXNotSupportedException
Returns whether the specified property will be enabled or disabled on reader instances constructed by this factory.

newSAXParser

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

setFeature

public void setFeature(String name,
                       boolean value)
            throws ParserConfigurationException,
                   SAXNotRecognizedException,
                   SAXNotSupportedException
Defines that the specified feature is to enabled/disabled (as per second argument) on reader instances created by this factory.

Licence: Academic Free License 3.0 and/or GPL 2.0