Code example for LexicalHandler

Methods: startEntity

0
     * @see org.xml.sax.ext.DeclHandler#internalEntityDecl 
     * @see org.xml.sax.ext.DeclHandler#externalEntityDecl 
     */ 
    public void startEntity(String name) throws SAXException {
        if (lexicalHandler != null) {
            lexicalHandler.startEntity(name);
        } 
    } 
 
    /** 
     * Report the end of an entity. 
     * 
     * @param name The name of the entity that is ending. 
     * @exception SAXException The application may raise an exception. 
     * @see #startEntity 
     */ 
    public void endEntity(String name) throws SAXException {
        if (lexicalHandler != null) {
            lexicalHandler.endEntity(name);
        } 
    }