Code example for ContentHandler

Methods: endDocument

0
 
    private void endDocument() throws SAXException { 
        ContentHandler contentHandler;
        contentHandler = xmlReader.contentHandler;
        if (contentHandler != null) {
            contentHandler.endDocument();
        } 
    } 
 
    /** 
     * Indicate that we're finished parsing. 
     * 
     * @throws SAXException if the xml is incomplete 
     */ 
    /*package*/ void finish() throws SAXException { 
        try { 
            appendString(this.pointer, "", true);
        } catch (ExpatException e) {
            throw new ParseException(e.getMessage(), this.locator);
        } 
    }