|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--de.mud.telnet.ScriptHandler
A script handler, that tries to match strings and returns true when it found the string it searched for.
Maintainer: Matthias L. Jugel
| Constructor Summary | |
ScriptHandler()
|
|
| Method Summary | |
boolean |
match(byte[] s,
int length)
Try to match the byte array s against the match string. |
void |
setup(java.lang.String match)
Setup the parser using the passed string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ScriptHandler()
| Method Detail |
public void setup(java.lang.String match)
match - the string to look for
public boolean match(byte[] s,
int length)
s - the array of bytes to match againstlength - the amount of bytes in the array
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||