|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TokenHandler
The TokenHandler interface should be implemented by classes that want to receives tokens from a Tokenizer.
Method Summary | |
---|---|
void |
attribute(String name)
Notification of an attribute for the most recently reported element. |
void |
attribute(String name,
String value)
Notification of an attribute for the most recently reported element. |
void |
comment(String comment)
Notification of comment. |
void |
docType(String name,
String sysId,
String fpi,
String url)
Notification of a processing instruction. |
void |
endDocument()
Notification of the end of a document. |
void |
endOfStartTag()
Notification of the end of a start tag. |
void |
endTag(String name)
Notification of an end tag. |
void |
error(String message)
Notification of a detected error. |
void |
startDocument()
Notification of the start of a new document. |
void |
startOfStartTag(String name)
Notification of the start of a start tag. |
void |
text(String text)
Notification of text. |
Method Detail |
---|
void startDocument()
void endDocument()
void startOfStartTag(String name)
name
- The tag name.void endOfStartTag()
void endTag(String name)
name
- The tag name.void attribute(String name)
name
- The name of the attribute.void attribute(String name, String value)
name
- The name of the attribute.value
- The value of the attribute.void text(String text)
text
- the text.void comment(String comment)
comment
- The comment.void docType(String name, String sysId, String fpi, String url)
name
- The type name, e.g. HTML.sysId
- The system id, e.g. PUBLIC or SYSTEM.fpi
- The Formal Public Identifier, e.g. "-//W3C//DTD HTML 4.0 Transitional//EN".url
- The URL of the DTD, e.g. "http://www.w3.org/TR/REC-html40/loose.dtd".void error(String message)
message
- An error message.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |