|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cyberneko.html.filters.DefaultFilter
org.cyberneko.html.filters.ElementRemover
org.apache.jetspeed.rewriter.html.neko.CallbackElementRemover
public class CallbackElementRemover
CallbackElementRemover
Extended version of the NekoHTML ElementRemover which provides tag stripping/removal based on Rewriter settings.
| Field Summary |
|---|
| Fields inherited from class org.cyberneko.html.filters.ElementRemover |
|---|
fAcceptedElements, fElementDepth, fRemovalElementDepth, fRemovedElements, NULL |
| Fields inherited from class org.cyberneko.html.filters.DefaultFilter |
|---|
fDocumentHandler, fDocumentSource |
| Constructor Summary | |
|---|---|
CallbackElementRemover(Rewriter rewriter)
Construct with reference to the rewriter context to consult for rewriting advice |
|
| Method Summary | |
|---|---|
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 |
protected java.lang.String[] |
getAttributeNames(org.apache.xerces.xni.XMLAttributes attrs)
|
protected void |
processTag(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attrs)
processTag |
void |
startElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attrs,
org.apache.xerces.xni.Augmentations arg2)
startElement |
| Methods inherited from class org.cyberneko.html.filters.ElementRemover |
|---|
acceptElement, characters, elementAccepted, elementRemoved, endCDATA, endElement, endGeneralEntity, endPrefixMapping, handleOpenTag, ignorableWhitespace, processingInstruction, removeElement, startCDATA, startDocument, startDocument, startGeneralEntity, startPrefixMapping, textDecl |
| Methods inherited from class org.cyberneko.html.filters.DefaultFilter |
|---|
doctypeDecl, endDocument, getDocumentHandler, getDocumentSource, getFeatureDefault, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, merge, reset, setDocumentHandler, setDocumentSource, setFeature, setProperty, xmlDecl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CallbackElementRemover(Rewriter rewriter)
| Method Detail |
|---|
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)
protected void processTag(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attrs)
processTag
tag - protected java.lang.String[] getAttributeNames(org.apache.xerces.xni.XMLAttributes attrs)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||