Code example for ContentHandler

Methods: characters

0
     * Receive notification of character data. 
     */ 
    public void characters(char[] ch, int start, int length) 
	throws SAXException  
    { 
	_handler.characters(ch, start, length);
    } 
 
    /** 
     * Implements org.xml.sax.ContentHandler.startDocument() 
     * Receive notification of the beginning of a document. 
     */ 
    public void startDocument() throws SAXException { 
	// Make sure setResult() was called before the first SAX event 
	if (_result == null) {
	    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_SET_RESULT_ERR);
	    throw new SAXException(err.toString());
	} 
 
        if (!_isIdentity) {
            boolean hasIdCall = (_translet != null) ? _translet.hasIdCall() : false;