Code example for DefaultHandler

Methods: startDocument

0
        h.setDocumentLocator(new LocatorImpl());
    } 
 
    public void testStartDocument() { 
        try { 
            h.startDocument();
        } catch (SAXException e) {
            throw new RuntimeException(e);
        } 
    } 
 
    public void testEndDocument() { 
        try { 
            h.endDocument();
        } catch (SAXException e) {
            throw new RuntimeException(e);
        } 
    } 
 
    public void testStartPrefixMapping() {