public class CallbackElementRemover
extends org.cyberneko.html.filters.ElementRemover
CallbackElementRemover
Extended version of the NekoHTML ElementRemover which provides tag stripping/removal based on Rewriter settings.
| Constructor and Description |
|---|
CallbackElementRemover(Rewriter rewriter)
Construct with reference to the rewriter context to consult for rewriting advice
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(org.apache.xerces.xni.XMLString text,
org.apache.xerces.xni.Augmentations augs)
characters
|
void |
comment(org.apache.xerces.xni.XMLString text,
org.apache.xerces.xni.Augmentations augs)
comment
|
void |
emptyElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attrs,
org.apache.xerces.xni.Augmentations arg2)
emptyElement
|
void |
endElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.Augmentations arg1)
endElement
|
protected String[] |
getAttributeNames(org.apache.xerces.xni.XMLAttributes attrs) |
protected void |
processTag(String tag,
org.apache.xerces.xni.XMLAttributes attrs)
processTag
|
protected void |
processText(String tag,
org.apache.xerces.xni.XMLString text)
processText
|
void |
startElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attrs,
org.apache.xerces.xni.Augmentations arg2)
startElement
|
acceptElement, elementAccepted, elementRemoved, endCDATA, endGeneralEntity, endPrefixMapping, handleOpenTag, ignorableWhitespace, processingInstruction, removeElement, startCDATA, startDocument, startDocument, startGeneralEntity, startPrefixMapping, textDecldoctypeDecl, endDocument, getDocumentHandler, getDocumentSource, getFeatureDefault, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, merge, reset, setDocumentHandler, setDocumentSource, setFeature, setProperty, xmlDeclpublic CallbackElementRemover(Rewriter rewriter)
public void characters(org.apache.xerces.xni.XMLString text,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
characters
characters in interface org.apache.xerces.xni.XMLDocumentHandlercharacters in class org.cyberneko.html.filters.ElementRemovertext - augs - org.apache.xerces.xni.XNIExceptionXMLDocumentHandler.characters(org.apache.xerces.xni.XMLString text, org.apache.xerces.xni.Augmentations augs)public void comment(org.apache.xerces.xni.XMLString text,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
comment
comment in interface org.apache.xerces.xni.XMLDocumentHandlercomment in class org.cyberneko.html.filters.ElementRemovertext - augs - org.apache.xerces.xni.XNIExceptionXMLDocumentHandler.comment(org.apache.xerces.xni.XMLString text, org.apache.xerces.xni.Augmentations augs)public void emptyElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attrs,
org.apache.xerces.xni.Augmentations arg2)
throws org.apache.xerces.xni.XNIException
emptyElement
emptyElement in interface org.apache.xerces.xni.XMLDocumentHandleremptyElement in class org.cyberneko.html.filters.ElementRemoverelement - arg1 - arg2 - org.apache.xerces.xni.XNIExceptionXMLDocumentHandler.emptyElement(org.apache.xerces.xni.QName,
org.apache.xerces.xni.XMLAttributes,
org.apache.xerces.xni.Augmentations)public void startElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attrs,
org.apache.xerces.xni.Augmentations arg2)
throws org.apache.xerces.xni.XNIException
startElement
startElement in interface org.apache.xerces.xni.XMLDocumentHandlerstartElement in class org.cyberneko.html.filters.ElementRemoverelement - arg1 - arg2 - org.apache.xerces.xni.XNIExceptionXMLDocumentHandler.startElement(org.apache.xerces.xni.QName,
org.apache.xerces.xni.XMLAttributes,
org.apache.xerces.xni.Augmentations)public void endElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.Augmentations arg1)
throws org.apache.xerces.xni.XNIException
endElement
endElement in interface org.apache.xerces.xni.XMLDocumentHandlerendElement in class org.cyberneko.html.filters.ElementRemoverelement - arg1 - org.apache.xerces.xni.XNIExceptionXMLDocumentHandler.endElement(org.apache.xerces.xni.QName,
org.apache.xerces.xni.Augmentations)protected void processTag(String tag, org.apache.xerces.xni.XMLAttributes attrs)
processTag
tag - attrs - protected String[] getAttributeNames(org.apache.xerces.xni.XMLAttributes attrs)
protected void processText(String tag, org.apache.xerces.xni.XMLString text)
processText
tag - text - Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.