Code example for ContentHandler

Methods: setDocumentLocator

0
                throws SAXException { 
            bodyHandler_.processingInstruction( target, data );
        } 
 
        public void setDocumentLocator( Locator locator ) {
            bodyHandler_.setDocumentLocator( locator );
        } 
    } 
 
    /** 
     * SAX ContentHandler implementation which makes sense of a SOAP fault 
     * (response from a 500 code). 
     */ 
    private static class FaultHandler extends DefaultHandler {
        private String faultString_;
        private String faultCode_;
        private StringBuffer charBuf_;
 
        public void startElement( String namespaceURI, String localName,
                                  String qName, Attributes atts ) {
            if ( "faultstring".equals( localName ) ||