com.cc.framework.util.parser
Interface HtmlHandler

All Known Subinterfaces:
JspHandler
All Known Implementing Classes:
DefaultHandler, HtmlToTextHandler, NullHandler

public interface HtmlHandler

The HtmlHandler implements the callback methods the HTML parser will call during processing of a HTML document

Author:
P001002

Field Summary
static int JSP_DECLARATION
          JSP Scriptlet declaration
static int JSP_EXPRESSION
          JSP Scriptlet expression
static int JSP_SCRIPT
          JSP Scriptlet java code
static int M_CLOSING
          Closing element </b>
static int M_INLINE
          Inline element <br/>
static int M_OPENING
          Opening element <b>
 
Method Summary
 void handleCharacters(char[] ch, int start, int length)
          Is called to process CDATA
 void handleComment(char[] ch, int start, int length)
          Is called to process a HTML comment
 void handleDocument(int mode)
          Is called at the beginning or the end of the document
 void handleElement(java.lang.String name, HtmlAttributes attributes, int mode)
          Is called at the beginning or the end of an element
 void handleEntity(java.lang.String entity, char character)
          Is called to process an entity
 

Field Detail

JSP_DECLARATION

public static final int JSP_DECLARATION
JSP Scriptlet declaration

See Also:
Constant Field Values

JSP_EXPRESSION

public static final int JSP_EXPRESSION
JSP Scriptlet expression

See Also:
Constant Field Values

JSP_SCRIPT

public static final int JSP_SCRIPT
JSP Scriptlet java code

See Also:
Constant Field Values

M_OPENING

public static final int M_OPENING
Opening element <b>

See Also:
Constant Field Values

M_CLOSING

public static final int M_CLOSING
Closing element </b>

See Also:
Constant Field Values

M_INLINE

public static final int M_INLINE
Inline element <br/>

See Also:
Constant Field Values
Method Detail

handleDocument

public void handleDocument(int mode)
Is called at the beginning or the end of the document

Parameters:
mode - one of the M_xxx constants

handleElement

public void handleElement(java.lang.String name,
                          HtmlAttributes attributes,
                          int mode)
Is called at the beginning or the end of an element

Parameters:
name - the element name
attributes - the attribute list of the element
mode - one of the M_xxx constants

handleCharacters

public void handleCharacters(char[] ch,
                             int start,
                             int length)
Is called to process CDATA

Parameters:
ch - the character buffer
start - the starting index within the buffer
length - the number of characters

handleComment

public void handleComment(char[] ch,
                          int start,
                          int length)
Is called to process a HTML comment

Parameters:
ch - the character buffer
start - the starting index within the buffer
length - the number of characters

handleEntity

public void handleEntity(java.lang.String entity,
                         char character)
Is called to process an entity

Parameters:
entity - the entity name (with '&' and ';')
character - the corresponding character code


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.