|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HTMLHandler
| Method Summary | |
|---|---|
void |
handleCDATA(java.lang.String text)
Handles specified CDATA segment's text; e.g. |
void |
handleComment(java.lang.String comment)
Handles specified comment. |
void |
handleDocDeclaration(java.lang.String docDecl)
Handles the DOCTYPE declaration. |
void |
handleEndTag(java.lang.String tag)
Handles specified end tag. |
void |
handleError(java.lang.String errorMsg)
Handles specified error. |
void |
handleSimpleTag(java.lang.String tag,
java.util.Map<java.lang.String,java.lang.String> attributes)
Handles specified simple tag. |
void |
handleStartTag(java.lang.String tag,
java.util.Map<java.lang.String,java.lang.String> attributes)
Handles specified start tag. |
void |
handleText(java.lang.String text,
boolean ignorable)
Handles specified text. |
void |
handleXMLDeclaration(java.lang.String version,
java.lang.Boolean standalone,
java.lang.String encoding)
Handles the <? |
| Method Detail |
|---|
void handleXMLDeclaration(java.lang.String version,
java.lang.Boolean standalone,
java.lang.String encoding)
version - The version; either "1.0" or nullstandalone - The standalone boolean value; either Boolean.TRUE, Boolean.FALSE, or nullencoding - The encoding; the charset name or nullvoid handleDocDeclaration(java.lang.String docDecl)
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
yields
' html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"'
docDecl - void handleCDATA(java.lang.String text)
text - The CDATA segment's text
void handleText(java.lang.String text,
boolean ignorable)
Note: Specified text contains all control characters from corresponding HTML content; e.g.:
Sorry if my article tried to imply that this is a
new thing (I hope it hasn't).
will be given as:
Sorry if my article tried to imply that this is a
new thing (I hope it hasn't).
Note: A text only containing whitespace characters is omitted.
text - The textignorable - true if specified text may be ignored since it only serves for formatting; otherwise falsevoid handleComment(java.lang.String comment)
comment - The comment
void handleStartTag(java.lang.String tag,
java.util.Map<java.lang.String,java.lang.String> attributes)
tag - The tag's nameattributes - The tag's attributes as an unmodifiable mapvoid handleEndTag(java.lang.String tag)
tag - The tag's name
void handleSimpleTag(java.lang.String tag,
java.util.Map<java.lang.String,java.lang.String> attributes)
tag - The tag's nameattributes - The tag's attributes as an unmodifiable mapvoid handleError(java.lang.String errorMsg)
errorMsg - The error message
java.lang.IllegalStateException - If handler decides that occurred error is worth being thrown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||