de.mud.telnet
Class ScriptHandler
java.lang.Objectde.mud.telnet.ScriptHandler
public class ScriptHandler
extends java.lang.Object
A script handler, that tries to match strings and returns true when
it found the string it searched for.
Maintainer: Matthias L. Jugel
$Id: ScriptHandler.java 499 2005-09-29 08:24:54Z leo $- Matthias L. Jugel, Marcus Mei???ner
boolean | match(byte[] s, int length)- Try to match the byte array s against the match string.
|
void | setup(String match)- Setup the parser using the passed string.
|
match
public boolean match(byte[] s,
int length) Try to match the byte array s against the match string.
s - the array of bytes to match againstlength - the amount of bytes in the array
- true if the string was found, else false
setup
public void setup(String match)
Setup the parser using the passed string.
match - the string to look for