FileDocCategorySizeDatePackage
SAXParserImpl.javaAPI DocAndroid 1.5 API2561Wed May 06 22:41:06 BST 2009org.apache.harmony.xml.parsers

SAXParserImpl

public class SAXParserImpl extends SAXParser
Provides a straightforward SAXParser implementation based on ExpatReader. The class is used internally only, thus only notable members that are not already in the abstract superclass are documented. Hope that's ok.

Fields Summary
private XMLReader
reader
private Parser
parser
Constructors Summary
SAXParserImpl(Map features)

        reader = new ExpatReader();

        for (Map.Entry<String,Boolean> entry : features.entrySet()) {
            reader.setFeature(entry.getKey(), entry.getValue());
        }
    
Methods Summary
public org.xml.sax.ParsergetParser()

        if (parser == null) {
            parser = new XMLReaderAdapter(reader);
        }

        return parser;
    
public java.lang.ObjectgetProperty(java.lang.String name)

        return reader.getProperty(name);
    
public org.xml.sax.XMLReadergetXMLReader()

        return reader;
    
public booleanisNamespaceAware()

        try {
            return reader.getFeature("http://xml.org/sax/features/namespaces");
        } catch (SAXException ex) {
            return false;
        }
    
public booleanisValidating()

        return false;
    
public voidsetProperty(java.lang.String name, java.lang.Object value)

        reader.setProperty(name, value);