Package org.radeox.filter
Class XHTMLFilter.DeblockFilter
- java.lang.Object
-
- org.radeox.filter.XHTMLFilter.DeblockFilter
-
- All Implemented Interfaces:
ContentHandler
- Enclosing class:
- XHTMLFilter
public class XHTMLFilter.DeblockFilter extends Object implements ContentHandler
-
-
Constructor Summary
Constructors Constructor Description DeblockFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElement(String blockElement, String unnested)voidcharacters(char[] arg0, int arg1, int arg2)voidendDocument()voidendElement(String arg0, String arg1, String arg2)When we get to the end element, pop the Stack element off the stack.voidendPrefixMapping(String arg0)voidignorableWhitespace(char[] arg0, int arg1, int arg2)voidprocessingInstruction(String arg0, String arg1)voidsetBlockElements(Map blockElements)voidsetContentHandler(ContentHandler ch)voidsetDocumentLocator(Locator arg0)voidskippedEntity(String arg0)voidstartDocument()voidstartElement(String ns, String qname, String lname, Attributes atts)Check each element to see if its in a list of elements which is should not be inside If it is one of these elements, get a list of elements, and unwind to that it is not inside the stackvoidstartPrefixMapping(String arg0, String arg1)
-
-
-
Method Detail
-
setContentHandler
public void setContentHandler(ContentHandler ch)
-
setBlockElements
public void setBlockElements(Map blockElements)
-
startElement
public void startElement(String ns, String qname, String lname, Attributes atts) throws SAXException
Check each element to see if its in a list of elements which is should not be inside If it is one of these elements, get a list of elements, and unwind to that it is not inside the stack- Specified by:
startElementin interfaceContentHandler- Throws:
SAXException
-
endElement
public void endElement(String arg0, String arg1, String arg2) throws SAXException
When we get to the end element, pop the Stack element off the stack. If there is arestore path, restore the path back in place by emitting start elements- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException
-
characters
public void characters(char[] arg0, int arg1, int arg2) throws SAXException- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] arg0, int arg1, int arg2) throws SAXException- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
processingInstruction
public void processingInstruction(String arg0, String arg1) throws SAXException
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
skippedEntity
public void skippedEntity(String arg0) throws SAXException
- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
setDocumentLocator
public void setDocumentLocator(Locator arg0)
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
startDocument
public void startDocument() throws SAXException- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String arg0, String arg1) throws SAXException
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String arg0) throws SAXException
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
-