Code example for SAXNotSupportedException

0
        if (name.equals(Feature.NAMESPACE_PREFIXES)) {
            processNamespacePrefixes = value;
            return; 
        } 
 
        if (name.equals(Feature.STRING_INTERNING)) {
            if (value) {
                // Default. 
                return; 
            } else { 
                throw new SAXNotSupportedException("Cannot disable " + name);
            } 
        } 
 
        throw new SAXNotRecognizedException(name);
    } 
 
    public Object getProperty(String name)
            throws SAXNotRecognizedException, SAXNotSupportedException { 
        if (name == null) {
            throw new NullPointerException("name == null");