com.mkdoc.sax
Class XhtmlMetadataFilter

java.lang.Object
  |
  +--org.xml.sax.helpers.XMLFilterImpl
        |
        +--com.mkdoc.sax.XhtmlMetadataFilter
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 XhtmlMetadataFilter
extends org.xml.sax.helpers.XMLFilterImpl

An XHTML metadata element filter.

Provides a gate for stripping out non-metadata content to simplify processing downstream. Only XHTML meta and link element content is passed. All other events are ignored.

Version:
0.1 2005-02-15
Author:
Philip Shaw

Constructor Summary
XhtmlMetadataFilter()
           
 
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

XhtmlMetadataFilter

public XhtmlMetadataFilter()
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 2005-02-15