fi.iki.hsivonen.xml
Class XHTMLCruftDropper

java.lang.Object
  extended by gnu.xml.pipeline.EventFilter
      extended by fi.iki.hsivonen.xml.XHTMLCruftDropper
All Implemented Interfaces:
gnu.xml.pipeline.EventConsumer, ContentHandler, DTDHandler, DeclHandler, LexicalHandler

public class XHTMLCruftDropper
extends gnu.xml.pipeline.EventFilter

Author:
hsivonen

Field Summary
private static String[] normalAttrs
           
private static String[] normalElts
           
private static String[] specialAttrs
           
private static String[] specialElts
           
 
Fields inherited from class gnu.xml.pipeline.EventFilter
DECL_HANDLER, FEATURE_URI, LEXICAL_HANDLER, PROPERTY_URI
 
Constructor Summary
XHTMLCruftDropper(gnu.xml.pipeline.EventConsumer next)
          Creates a new instance of XHTMLStricter
 
Method Summary
 void endElement(String uri, String local, String qname)
           
 void ignorableWhitespace(char[] values, int param, int param2)
           
 void skippedEntity(String str)
           
 void startElement(String uri, String local, String qname, Attributes attributes)
           
 
Methods inherited from class gnu.xml.pipeline.EventFilter
attributeDecl, bind, chainTo, characters, comment, elementDecl, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, externalEntityDecl, getContentHandler, getDocumentLocator, getDTDHandler, getErrorHandler, getNext, getProperty, internalEntityDecl, notationDecl, processingInstruction, setContentHandler, setDocumentLocator, setDTDHandler, setErrorHandler, setProperty, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

normalAttrs

private static final String[] normalAttrs

normalElts

private static final String[] normalElts

specialElts

private static final String[] specialElts

specialAttrs

private static final String[] specialAttrs
Constructor Detail

XHTMLCruftDropper

public XHTMLCruftDropper(gnu.xml.pipeline.EventConsumer next)
Creates a new instance of XHTMLStricter

Method Detail

endElement

public void endElement(String uri,
                       String local,
                       String qname)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class gnu.xml.pipeline.EventFilter
Throws:
SAXException

ignorableWhitespace

public void ignorableWhitespace(char[] values,
                                int param,
                                int param2)
Specified by:
ignorableWhitespace in interface ContentHandler
Overrides:
ignorableWhitespace in class gnu.xml.pipeline.EventFilter

skippedEntity

public void skippedEntity(String str)
                   throws SAXException
Specified by:
skippedEntity in interface ContentHandler
Overrides:
skippedEntity in class gnu.xml.pipeline.EventFilter
Throws:
SAXException

startElement

public void startElement(String uri,
                         String local,
                         String qname,
                         Attributes attributes)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class gnu.xml.pipeline.EventFilter
Throws:
SAXException