Code example for DefaultHandler

0
    private ErrorHandler error_;
    private NamespaceSupport namespace_;
    private boolean throwException_;
 
    public DOMSAXProducerVisitor() { 
        DefaultHandler handler = new DefaultHandler();
        dtd_ = handler;
        content_ = handler;
        error_ = handler;
        lexical_ = new LexicalHandlerBase();
        decl_ = new DeclHandlerBase();
        namespace_ = new NamespaceSupport();
        throwException_ = false;
    } 
 
    public void setSystemID(String id) {
        systemID_ = id;
    } 
 
    public void setPublicID(String id) {