01: package snow.utils;
02:
03: /** Use this to listen for some specific line, for example "server is ready." in jhat.
04: */
05: public interface StringGobblerLineListener {
06: void lineMatch(String matchedLine);
07:
08: /** pass here the line you want to match.
09: */
10: String lineToMatch();
11:
12: /** some line was read, NOT matching
13: */
14: void lineRead(String line);
15: }
|