Code example for Handler

Methods: flush

0
 
        public void startDocument() throws SAXException { 
        } 
 
        public void endDocument() throws SAXException { 
            callback.flush();
        } 
 
        public void startPrefixMapping(String prefix, String uri) throws SAXException {
        } 
 
        public void endPrefixMapping(String prefix) throws SAXException {
        } 
 
        public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException {
            if (LOG.isLoggable(Level.FINEST)) {
                LOG.log(Level.FINEST, "uri: {0} localName: {1} qName: {2} atts: {3}", new Object[] { uri, localName, qName, atts });
            } 
 
            try { 
                current = Elem.valueOf(qName.toUpperCase());