|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.util.parser.handler.HtmlToTextHandler
This handler is used to convert HTML to raw text
| Field Summary | |
private java.lang.StringBuffer |
buffer
The resulting string buffer |
| Fields inherited from interface com.cc.framework.util.parser.HtmlHandler |
JSP_DECLARATION, JSP_EXPRESSION, JSP_SCRIPT, M_CLOSING, M_INLINE, M_OPENING |
| Constructor Summary | |
HtmlToTextHandler()
|
|
| Method Summary | |
java.lang.String |
getResult()
|
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.StringBuffer buffer
| Constructor Detail |
public HtmlToTextHandler()
| Method Detail |
public java.lang.String getResult()
public void handleCharacters(char[] ch,
int start,
int length)
HtmlHandler
handleCharacters in interface HtmlHandlerch - the character bufferstart - the starting index within the bufferlength - the number of charactersHtmlHandler.handleCharacters(char[], int, int)
public void handleComment(char[] ch,
int start,
int length)
HtmlHandler
handleComment in interface HtmlHandlerch - the character bufferstart - the starting index within the bufferlength - the number of charactersHtmlHandler.handleComment(char[], int, int)public void handleDocument(int mode)
HtmlHandler
handleDocument in interface HtmlHandlermode - one of the M_xxx constantsHtmlHandler.handleDocument(int)
public void handleElement(java.lang.String name,
HtmlAttributes attributes,
int mode)
HtmlHandler
handleElement in interface HtmlHandlername - the element nameattributes - the attribute list of the elementmode - one of the M_xxx constantsHtmlHandler.handleElement(java.lang.String, com.cc.framework.util.parser.HtmlAttributes, int)
public void handleEntity(java.lang.String entity,
char character)
HtmlHandler
handleEntity in interface HtmlHandlerentity - the entity name (with '&' and ';')character - the corresponding character codeHtmlHandler.handleEntity(java.lang.String, char)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||