public void endElement(String uri, String localName, String qName) throws SAXException { TagAction ta = TAG_ACTIONS.get(localName); if (ta != null) { ta.beforeEnd(this, localName); } try { if (inIgnorableElement == 0) { if (outputHighlightOnly) { boolean highlight = contentBitSet .get(characterElementIdx); if (!highlight) { return; } } html.append("</"); html.append(qName); html.append('>'); } } finally { if (ta != null) { ta.afterEnd(this, localName); } } }
public void endElement(String uri, String localName, String qName) throws SAXException { TagAction ta = TAG_ACTIONS.get(localName); if (ta != null) { ta.beforeEnd(this, localName); } try { if (inIgnorableElement == 0) { if (outputHighlightOnly) { // boolean highlight = contentBitSet // .get(characterElementIdx); // if (!highlight) { // return; // } } if (tagWhitelist != null && !tagWhitelist.containsKey(qName)) { // skip return; } html.append("</"); html.append(qName); html.append('>'); } } finally { if (ta != null) { ta.afterEnd(this, localName); } } }
public void endElement(String uri, String localName, String qName) throws SAXException { TagAction ta = TAG_ACTIONS.get(localName); if (ta != null) { ta.beforeEnd(this, localName); } try { if (inIgnorableElement == 0) { if (outputHighlightOnly) { // boolean highlight = contentBitSet // .get(characterElementIdx); // if (!highlight) { // return; // } } if (tagWhitelist != null && !tagWhitelist.containsKey(qName)) { // skip return; } html.append("</"); html.append(qName); html.append('>'); } } finally { if (ta != null) { ta.afterEnd(this, localName); } } }
public void endElement(String uri, String localName, String qName) throws SAXException { TagAction ta = TAG_ACTIONS.get(localName); if (ta != null) { ta.beforeEnd(this, localName); } try { if (inIgnorableElement == 0) { if (outputHighlightOnly) { // boolean highlight = contentBitSet // .get(characterElementIdx); // if (!highlight) { // return; // } } if (tagWhitelist != null && !tagWhitelist.containsKey(qName)) { // skip return; } html.append("</"); html.append(qName); html.append('>'); } } finally { if (ta != null) { ta.afterEnd(this, localName); } } }