com.day.cq.rewriter.htmlparser
Interface DocumentHandler

All Known Implementing Classes:
DocumentHandlerToSAXAdapter

public interface DocumentHandler

Invoked by the HTMLParser when elements are scanned.


Method Summary
 void characters(char[] ch, int off, int len)
          Receive notification of unparsed character data.
 void onEnd()
          Receive notification of parsing end.
 void onEndElement(String name, char[] ch, int off, int len)
          Receive notification of the end of an element.
 void onStart()
          Receive notification of parsing start.
 void onStartElement(String name, AttributeList attList, char[] ch, int off, int len, boolean endSlash)
          Receive notification of the beginning of an element.
 

Method Detail

characters

void characters(char[] ch,
                int off,
                int len)
                throws IOException
Receive notification of unparsed character data.

Parameters:
ch - character data
off - offset where character data starts
len - length of character data
Throws:
IOException

onStartElement

void onStartElement(String name,
                    AttributeList attList,
                    char[] ch,
                    int off,
                    int len,
                    boolean endSlash)
                    throws IOException
Receive notification of the beginning of an element.

Parameters:
name - tag name
attList - attribute list
ch - string equivalent to this notification
off - offset where character data starts
len - length of character data
endSlash - flag indicating whether the element is closed with an ending slash (xhtml-compliant)
Throws:
IOException

onEndElement

void onEndElement(String name,
                  char[] ch,
                  int off,
                  int len)
                  throws IOException
Receive notification of the end of an element.

Parameters:
name - tag name
ch - string equivalent to this notification
off - offset where character data starts
len - length of character data
Throws:
IOException

onStart

void onStart()
             throws IOException
Receive notification of parsing start.

Throws:
IOException

onEnd

void onEnd()
           throws IOException
Receive notification of parsing end.

Throws:
IOException


Copyright © 2009 Day Management AG. All Rights Reserved.