fi.iki.hsivonen.xml
Class BlockPassFilter

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

public class BlockPassFilter
extends gnu.xml.pipeline.EventFilter


Field Summary
private static String[] BLOCK_ELEMENTS
           
private  int depth
           
private static String XHTML_NS
          The XHTML namespace URI
 
Fields inherited from class gnu.xml.pipeline.EventFilter
DECL_HANDLER, FEATURE_URI, LEXICAL_HANDLER, PROPERTY_URI
 
Constructor Summary
BlockPassFilter(gnu.xml.pipeline.EventConsumer next)
           
 
Method Summary
 void characters(char[] arg0, int arg1, int arg2)
           
 void endElement(String arg0, String arg1, String arg2)
           
 void ignorableWhitespace(char[] arg0, int arg1, int arg2)
           
private static boolean isBlock(String name)
           
 void processingInstruction(String arg0, String arg1)
           
 void startDocument()
           
 void startElement(String namespaceURI, String localName, String qName, Attributes atts)
           
 
Methods inherited from class gnu.xml.pipeline.EventFilter
attributeDecl, bind, chainTo, comment, elementDecl, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, externalEntityDecl, getContentHandler, getDocumentLocator, getDTDHandler, getErrorHandler, getNext, getProperty, internalEntityDecl, notationDecl, setContentHandler, setDocumentLocator, setDTDHandler, setErrorHandler, setProperty, skippedEntity, startCDATA, startDTD, startEntity, startPrefixMapping, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XHTML_NS

private static final String XHTML_NS
The XHTML namespace URI

See Also:
Constant Field Values

BLOCK_ELEMENTS

private static final String[] BLOCK_ELEMENTS

depth

private int depth
Constructor Detail

BlockPassFilter

public BlockPassFilter(gnu.xml.pipeline.EventConsumer next)
Method Detail

isBlock

private static boolean isBlock(String name)

characters

public void characters(char[] arg0,
                       int arg1,
                       int arg2)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class gnu.xml.pipeline.EventFilter
Throws:
SAXException
See Also:
EventFilter.characters(char[], int, int)

endElement

public void endElement(String arg0,
                       String arg1,
                       String arg2)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class gnu.xml.pipeline.EventFilter
Throws:
SAXException
See Also:
EventFilter.endElement(java.lang.String, java.lang.String, java.lang.String)

ignorableWhitespace

public void ignorableWhitespace(char[] arg0,
                                int arg1,
                                int arg2)
                         throws SAXException
Specified by:
ignorableWhitespace in interface ContentHandler
Overrides:
ignorableWhitespace in class gnu.xml.pipeline.EventFilter
Throws:
SAXException
See Also:
EventFilter.ignorableWhitespace(char[], int, int)

processingInstruction

public void processingInstruction(String arg0,
                                  String arg1)
                           throws SAXException
Specified by:
processingInstruction in interface ContentHandler
Overrides:
processingInstruction in class gnu.xml.pipeline.EventFilter
Throws:
SAXException
See Also:
EventFilter.processingInstruction(java.lang.String, java.lang.String)

startDocument

public void startDocument()
                   throws SAXException
Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class gnu.xml.pipeline.EventFilter
Throws:
SAXException
See Also:
EventFilter.startDocument()

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class gnu.xml.pipeline.EventFilter
Throws:
SAXException
See Also:
EventFilter.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)