Code example for LexicalHandler

Methods: comment

0
     * @param length The number of characters to use from the array. 
     * @exception SAXException The application may raise an exception. 
     */ 
    public void comment(char ch[], int start, int length) throws SAXException {
        if (lexicalHandler != null) {
            lexicalHandler.comment(ch, start, length);
        } 
    } 
     
    /** Pass data through the pipline. 
      * By default, this call is ignored. 
      * Subclasses are invited to use this as a way for children tags to 
      * pass data to their parent. 
      *  
      * @param object the data to pass 
      * @exception SAXException The application may raise an exception. 
      */ 
    public void objectData(Object object) throws SAXException {
        if(contentHandler instanceof XMLOutput)
            ((XMLOutput) contentHandler).objectData(object);
        else {