|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.util.parser.formatter.DefaultHandler
This handler is used to create HTML
| Field Summary | |
private java.io.PrintWriter |
out
Result 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 | |
DefaultHandler(java.io.OutputStream out)
Constructor |
|
| 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 |
void |
handleJspComment(char[] ch,
int start,
int length)
Is called to process a JSP comment |
void |
handleJspDirective(java.lang.String directive,
HtmlAttributes attributes)
Is called for a JSP directive |
void |
handleJspScriptlet(int type,
char[] ch,
int start,
int length)
Is called to process a JSP scriptlet |
protected void |
print(char ch)
|
protected void |
print(char[] ch,
int start,
int length)
|
protected void |
print(java.lang.String str)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.io.PrintWriter out
| Constructor Detail |
public DefaultHandler(java.io.OutputStream out)
out - the output stream| Method Detail |
protected void print(char ch)
protected void print(java.lang.String str)
protected void print(char[] ch,
int start,
int length)
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)
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 handleJspComment(char[] ch,
int start,
int length)
JspHandler
handleJspComment in interface JspHandlerch - the character bufferstart - the starting index within the bufferlength - the number of charactersJspHandler.handleJspComment(char[], int, int)
public void handleJspScriptlet(int type,
char[] ch,
int start,
int length)
JspHandler
handleJspScriptlet in interface JspHandlertype - the type of the scriptlet (JSP_xxxx)ch - the character bufferstart - the starting index within the bufferlength - the number of charactersJspHandler.handleJspScriptlet(int, char[], int, int)
public void handleJspDirective(java.lang.String directive,
HtmlAttributes attributes)
JspHandler
handleJspDirective in interface JspHandlerdirective - the directive nameattributes - the attribute list of the elementJspHandler.handleJspDirective(java.lang.String, com.cc.framework.util.parser.HtmlAttributes)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||