org.cyberiantiger.mudclient.parser
Interface Parser

All Known Implementing Classes:
ANSIParser, ElephantMUDParser

public interface Parser


Method Summary
 boolean changeParser()
          Should we change the parser
 void flush(ConsoleWriter writer)
          Tell this parser to flush it's output to client.
 java.lang.String getName()
          Get the name of this parser
 Parser getNewParser()
          Get the new parser in the event that it should be changed.
 void putChar(char ch)
          Push a character to this parser.
 

Method Detail

putChar

public void putChar(char ch)
Push a character to this parser.

Returns:
The parser to push the next character to, may not always be this instance of parser

flush

public void flush(ConsoleWriter writer)
Tell this parser to flush it's output to client.


getName

public java.lang.String getName()
Get the name of this parser


changeParser

public boolean changeParser()
Should we change the parser


getNewParser

public Parser getNewParser()
Get the new parser in the event that it should be changed.



Copyright © 2003 OSJava. All Rights Reserved.