Code example for ContentHandler

Methods: setDocumentLocator, startDocument

0
    } 
 
    private void startDocument() throws SAXException { 
        ContentHandler contentHandler = xmlReader.contentHandler;
        if (contentHandler != null) {
            contentHandler.setDocumentLocator(this.locator);
            contentHandler.startDocument();
        } 
    } 
 
    private void endDocument() throws SAXException { 
        ContentHandler contentHandler;
        contentHandler = xmlReader.contentHandler;
        if (contentHandler != null) {
            contentHandler.endDocument();
        } 
    } 
 
    /** 
     * Indicate that we're finished parsing. 
     *