|
||||||||||
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 | |
---|---|
private Rewriter |
rewriter
|
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 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 |
Field Detail |
---|
private Rewriter rewriter
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.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)
protected void processTag(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attrs)
processTag
tag
- protected String[] getAttributeNames(org.apache.xerces.xni.XMLAttributes attrs)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |