org.apache.commons.digester

Class ParserFeatureSetterFactory


public class ParserFeatureSetterFactory
extends java.lang.Object

Creates a SAXParser based on the underlying parser. Allows logical properties depending on logical parser versions to be set.

Since:
1.6

Field Summary

private static boolean
isXercesUsed
true is Xerces is used.

Method Summary

static SAXParser
newSAXParser(Properties properties)
Create a new SAXParser

Field Details

isXercesUsed

private static boolean isXercesUsed
true is Xerces is used.

Method Details

newSAXParser

public static SAXParser newSAXParser(Properties properties)
            throws ParserConfigurationException,
                   SAXException,
                   SAXNotRecognizedException,
                   SAXNotSupportedException
Create a new SAXParser

Parameters:
properties - (logical) properties to be set on parser

Returns:
a SAXParser configured based on the underlying parser implementation.


Copyright 2001-2005 The Apache Software Foundation.