com.mkdoc.sax
Class XhtmlMetaFilter

java.lang.Object
  |
  +--org.xml.sax.helpers.XMLFilterImpl
        |
        +--com.mkdoc.sax.XhtmlMetaFilter
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.XMLFilter, org.xml.sax.XMLReader

public class XhtmlMetaFilter
extends org.xml.sax.helpers.XMLFilterImpl

An XHTML meta element filter.

Provides a gate for stripping out non-metadata content to simplify processing downstream. Only XHTML meta element content is passed.

All other events pass directly to the relevant superclass handlers, which do nothing.

Version:
0.1 2004-10-12
Author:
Philip Shaw

Constructor Summary
XhtmlMetaFilter()
           
 
Method Summary
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
          Ignore irrelevant elements.
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XhtmlMetaFilter

public XhtmlMetaFilter()
Method Detail

startElement

public final void startElement(java.lang.String uri,
                               java.lang.String localName,
                               java.lang.String qName,
                               org.xml.sax.Attributes atts)
                        throws org.xml.sax.SAXException
Ignore irrelevant elements.

Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.XMLFilterImpl
Parameters:
uri - The namespace URI for the element.
localName - The local element name.
qName - The qualified element name.
atts - A set of attributes.
Throws:
org.xml.sax.SAXException - The underlying ContentHandler may throw this exception handling this event.
Since:
Version 0.1 2004-12-10