org.apache.cocoon.portal.util
Class HtmlSaxParser.ContentFilter

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.xml.AbstractXMLConsumer
          extended by org.apache.cocoon.xml.ContentHandlerWrapper
              extended by org.apache.cocoon.portal.util.HtmlSaxParser.ContentFilter
All Implemented Interfaces:
Poolable, Recyclable, LogEnabled, XMLConsumer, ContentHandler, LexicalHandler
Enclosing class:
HtmlSaxParser

protected static final class HtmlSaxParser.ContentFilter
extends ContentHandlerWrapper


Field Summary
 
Fields inherited from class org.apache.cocoon.xml.ContentHandlerWrapper
contentHandler, lexicalHandler
 
Constructor Summary
HtmlSaxParser.ContentFilter(ContentHandler ch)
           
 
Method Summary
 void endElement(String uri, String loc, String raw)
          Receive notification of the end of an element.
 void startElement(String uri, String loc, String raw, Attributes a)
          Receive notification of the beginning of an element.
 
Methods inherited from class org.apache.cocoon.xml.ContentHandlerWrapper
characters, comment, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, recycle, setContentHandler, setDocumentLocator, setLexicalHandler, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlSaxParser.ContentFilter

public HtmlSaxParser.ContentFilter(ContentHandler ch)
Method Detail

endElement

public void endElement(String uri,
                       String loc,
                       String raw)
                throws SAXException
Description copied from class: ContentHandlerWrapper
Receive notification of the end of an element.

Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class ContentHandlerWrapper
Parameters:
uri - The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
loc - The local name (without prefix), or the empty string if Namespace processing is not being performed.
raw - The raw XML 1.0 name (with prefix), or the empty string if raw names are not available.
Throws:
SAXException
See Also:
ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)

startElement

public void startElement(String uri,
                         String loc,
                         String raw,
                         Attributes a)
                  throws SAXException
Description copied from class: ContentHandlerWrapper
Receive notification of the beginning of an element.

Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class ContentHandlerWrapper
Parameters:
uri - The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
loc - The local name (without prefix), or the empty string if Namespace processing is not being performed.
raw - The raw XML 1.0 name (with prefix), or the empty string if raw names are not available.
a - The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.
Throws:
SAXException
See Also:
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.