Code example for SAXNotRecognizedException

Methods: getMessage

0
public class ParserFeatureSetterFactory{ 
 
    /** 
     * <code>true</code> is Xerces is used. 
     */ 
    private static boolean isXercesUsed; 
 
    static { 
        try{ 
            // Use reflection to avoid a build dependency with Xerces. 
            Class.forName("org.apache.xerces.impl.Version");
            isXercesUsed = true;
        } catch (Exception ex){
            isXercesUsed = false;
        } 
    } 
 
    /** 
     * Create a new <code>SAXParser</code> 
     * @param properties (logical) properties to be set on parser 
     * @return a <code>SAXParser</code> configured based on the underlying