1 package org.cyberiantiger.mudclient.parser;
2
3 import org.cyberiantiger.console.ConsoleWriter;
4
5 public interface Parser {
6
7 /***
8 * Push a character to this parser.
9 *
10 * @return The parser to push the next character to, may not always be
11 * this instance of parser
12 */
13 public void putChar(char ch);
14
15 /***
16 * Tell this parser to flush it's output to client.
17 */
18 public void flush(ConsoleWriter writer);
19
20 /***
21 * Get the name of this parser
22 */
23 public String getName();
24
25 /***
26 * Should we change the parser
27 */
28 public boolean changeParser();
29
30 /***
31 * Get the new parser in the event that it should be changed.
32 */
33 public Parser getNewParser();
34 }
This page was automatically generated by Maven