fi.iki.hsivonen.htmlparser
Class EmptyElementFilter
java.lang.Object
fi.iki.hsivonen.xml.ContentHandlerFilter
fi.iki.hsivonen.htmlparser.EmptyElementFilter
- All Implemented Interfaces:
- ContentHandler
public final class EmptyElementFilter
- extends ContentHandlerFilter
- Version:
- $Id: EmptyElementFilter.java,v 1.7 2006/12/01 12:34:31 hsivonen Exp $
- Author:
- hsivonen
Methods inherited from class fi.iki.hsivonen.xml.ContentHandlerFilter |
characters, endDocument, endPrefixMapping, err, fatal, getContentHandler, getErrorHandler, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, setErrorHandler, skippedEntity, startDocument, startPrefixMapping |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XHTML_NS
private static final String XHTML_NS
- See Also:
- Constant Field Values
EMPTY_ELEMENTS
private static final String[] EMPTY_ELEMENTS
- HTML 4.01 Strict elements which don't have an end tag
EmptyElementFilter
public EmptyElementFilter()
isEmpty
private static final boolean isEmpty(String name)
endElement
public void endElement(String uri,
String local,
String qName)
throws SAXException
- Specified by:
endElement
in interface ContentHandler
- Overrides:
endElement
in class ContentHandlerFilter
- Throws:
SAXException
- See Also:
ContentHandler.endElement(java.lang.String,
java.lang.String, java.lang.String)
startElement
public void startElement(String uri,
String local,
String qName,
Attributes attrs)
throws SAXException
- Specified by:
startElement
in interface ContentHandler
- Overrides:
startElement
in class ContentHandlerFilter
- Throws:
SAXException
- See Also:
ContentHandler.startElement(java.lang.String,
java.lang.String, java.lang.String, org.xml.sax.Attributes)