Code example for DefaultHandler

0
    /* 
     * Note: most of the tests have to check for an empty implementation of the 
     * respective methods and, as a result, are somewhat trivial. 
     */ 
 
    private DefaultHandler h = new DefaultHandler();
 
    public void testResolveEntity() { 
        try { 
            h.resolveEntity("publicID", "systemID");
        } catch (SAXException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            throw new RuntimeException(e);
        } 
    } 
 
    public void testNotationDecl() { 
        try { 
            h.notationDecl("name", "publicID", "systemID");