Code example for ContentHandler

Methods: characters, endElement, startElement

0
    /** 
     * @see org.xml.sax.ContentHandler#startElement(String, String, String, Attributes) 
     */ 
    public void startElement(String namespaceURI, String localName, 
                        String qName, Attributes atts) throws SAXException {
        target.startElement(namespaceURI, localName, qName, atts);
    } 
 
 
    /** 
     * @see org.xml.sax.ContentHandler#endElement(String, String, String) 
     */ 
    public void endElement(String namespaceURI, String localName, String qName) 
                                                        throws SAXException { 
        target.endElement(namespaceURI, localName, qName);
    } 
 
 
    /** 
     * @see org.xml.sax.ContentHandler#characters(char[], int, int) 
     */ 
    public void characters(char[] ch, int start, int length) throws SAXException {
        target.characters(ch, start, length);
    } 
 
 
    /** 
     * @see org.xml.sax.ContentHandler#ignorableWhitespace(char[], int, int)