Code example for DefaultHandler

0
     * a dummy content handler that simply ignores all the events. Subclasses 
     * should use the {@link #setContentHandler(ContentHandler)} method to 
     * switch to a more usable underlying content handler. 
     */ 
    protected ContentHandlerDecorator() { 
        this(new DefaultHandler());
    } 
 
    /** 
     * Sets the underlying content handler. All future SAX events will be 
     * directed to this handler instead of the one that was previously used. 
     * 
     * @param handler content handler 
     */ 
    protected void setContentHandler(ContentHandler handler) {
        assert handler != null;
        this.handler = handler;
    } 
 
    @Override 
Experience pair programming with AI  Get Codota for Java