com.bluecast.xml

Class JAXPSAXParserFactory


public class JAXPSAXParserFactory
extends SAXParserFactory

JAXP factory class for creating SAX parsers. This factory creates an instance of Piccolo when a non-validating parser is requested.

If a validating parser is requested, this class will search for another SAXParserFactory to create the validating parser. This class will search for a factory in the following ways:

  1. The system property com.bluecast.xml.ValidatingSAXParserFactory
  2. The next listed Service Provider for javax.xml.parsers.SAXParserFactory
  3. Crimson (org.apache.crimson.jaxp.SAXParserFactoryImpl)
If all of the above fail, a ParserConfigurationException will be thrown.
Version:
$Revision: 1.7 $
Author:
Yuval Oren, yuval@bluecast.com

Constructor Summary

JAXPSAXParserFactory()

Method Summary

boolean
getFeature(String name)
static SAXParserFactory
newInstance()
SAXParser
newSAXParser()
void
setFeature(String name, boolean enabled)
void
setNamespaceAware(boolean awareness)
void
setValidating(boolean value)

Methods inherited from class javax.xml.parsers.SAXParserFactory

getFeature, isNamespaceAware, isValidating, newInstance, newSAXParser, setFeature, setNamespaceAware, setValidating

Constructor Details

JAXPSAXParserFactory

public JAXPSAXParserFactory()

Method Details

getFeature

public boolean getFeature(String name)
            throws ParserConfigurationException,
                   SAXNotRecognizedException,
                   SAXNotSupportedException
Overrides:
getFeature in interface SAXParserFactory

newInstance

public static SAXParserFactory newInstance()
Overrides:
newInstance in interface SAXParserFactory

newSAXParser

public SAXParser newSAXParser()
            throws ParserConfigurationException,
                   SAXException
Overrides:
newSAXParser in interface SAXParserFactory

setFeature

public void setFeature(String name,
                       boolean enabled)
            throws ParserConfigurationException,
                   SAXNotRecognizedException,
                   SAXNotSupportedException
Overrides:
setFeature in interface SAXParserFactory

setNamespaceAware

public void setNamespaceAware(boolean awareness)
Overrides:
setNamespaceAware in interface SAXParserFactory

setValidating

public void setValidating(boolean value)
Overrides:
setValidating in interface SAXParserFactory