de.rw7.token.test
Class TokenTest
java.lang.Object
|
+--de.rw7.token.test.TokenTest
- All Implemented Interfaces:
- HtmlConsumer, java.lang.Runnable
- public class TokenTest
- extends java.lang.Object
- implements HtmlConsumer, java.lang.Runnable
| Method Summary |
private void |
alarm(java.lang.String s)
|
private static java.lang.String |
convert(java.lang.String s)
|
static void |
main(java.lang.String[] args)
|
int |
onClosingTag(int code, java.lang.String name)
Notifies the Consumer, that an closing html tag has been encountered. |
int |
onOpeningTag(int code, java.lang.String name, java.lang.String[] attr)
Notifies the Consumer, that an opening html tag has been encountered. |
void |
onText(FastInput in)
|
void |
run()
|
| Methods inherited from class java.lang.Object |
<clinit>, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
error
int error
ht
HtmlTokenizer ht
tt
TextTokenizer tt
r
FastInput r
tagV
java.util.Vector tagV
tagI
int tagI
TokenTest
public TokenTest()
alarm
private final void alarm(java.lang.String s)
convert
private static final java.lang.String convert(java.lang.String s)
onOpeningTag
public int onOpeningTag(int code,
java.lang.String name,
java.lang.String[] attr)
- Description copied from interface:
HtmlConsumer
- Notifies the Consumer, that an opening html tag has been encountered. This works only for registered tags.
-
- Specified by:
onOpeningTag in interface HtmlConsumer
- Following copied from interface:
de.rw7.token.HtmlConsumer
-
- Parameters:
code - the code provided on tag registration
tag - the tag name itself
attr - the tag attributes as registered
- See Also:
HtmlTokenizer.addTag(java.lang.String, int, java.lang.String[])
onClosingTag
public int onClosingTag(int code,
java.lang.String name)
- Description copied from interface:
HtmlConsumer
- Notifies the Consumer, that an closing html tag has been encountered.
-
- Specified by:
onClosingTag in interface HtmlConsumer
- Following copied from interface:
de.rw7.token.HtmlConsumer
-
- Parameters:
code - the code provided on tag registration
tag - the tag name itself
onText
public void onText(FastInput in)
throws java.io.IOException,
FastInput.EndException
-
- Specified by:
onText in interface HtmlConsumer
run
public void run()
-
- Specified by:
run in interface java.lang.Runnable
main
public static void main(java.lang.String[] args)
throws java.io.IOException