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, textDecl
doctypeDecl, endDocument, getDocumentHandler, getDocumentSource, getFeatureDefault, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, merge, reset, setDocumentHandler, setDocumentSource, setFeature, setProperty, xmlDecl
public 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.XMLDocumentHandler
characters
in class org.cyberneko.html.filters.ElementRemover
text
- augs
- org.apache.xerces.xni.XNIException
XMLDocumentHandler.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.XMLDocumentHandler
comment
in class org.cyberneko.html.filters.ElementRemover
text
- augs
- org.apache.xerces.xni.XNIException
XMLDocumentHandler.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.XMLDocumentHandler
emptyElement
in class org.cyberneko.html.filters.ElementRemover
element
- arg1
- arg2
- org.apache.xerces.xni.XNIException
XMLDocumentHandler.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.XMLDocumentHandler
startElement
in class org.cyberneko.html.filters.ElementRemover
element
- arg1
- arg2
- org.apache.xerces.xni.XNIException
XMLDocumentHandler.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.XMLDocumentHandler
endElement
in class org.cyberneko.html.filters.ElementRemover
element
- arg1
- org.apache.xerces.xni.XNIException
XMLDocumentHandler.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.