org.cyberiantiger.mudclient.parser
Class ANSIParser

java.lang.Object
  extended byorg.cyberiantiger.mudclient.parser.ANSIParser
All Implemented Interfaces:
Parser

public class ANSIParser
extends java.lang.Object
implements Parser


Field Summary
static int ANSI1
           
static int ANSI2
           
static int ANSI3
           
static int ANSI4
           
static int ELECLIENT
           
static int NONE
           
static int TEXT
           
 
Constructor Summary
ANSIParser()
           
 
Method Summary
 boolean changeParser()
          Should we change the parser
 void flush(ConsoleWriter client)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
See Also:
Constant Field Values

ELECLIENT

public static final int ELECLIENT
See Also:
Constant Field Values

TEXT

public static final int TEXT
See Also:
Constant Field Values

ANSI1

public static final int ANSI1
See Also:
Constant Field Values

ANSI2

public static final int ANSI2
See Also:
Constant Field Values

ANSI3

public static final int ANSI3
See Also:
Constant Field Values

ANSI4

public static final int ANSI4
See Also:
Constant Field Values
Constructor Detail

ANSIParser

public ANSIParser()
Method Detail

putChar

public void putChar(char ch)
Description copied from interface: Parser
Push a character to this parser.

Specified by:
putChar in interface Parser
Returns:
The parser to push the next character to, may not always be this instance of parser

flush

public void flush(ConsoleWriter client)
Description copied from interface: Parser
Tell this parser to flush it's output to client.

Specified by:
flush in interface Parser

getName

public java.lang.String getName()
Description copied from interface: Parser
Get the name of this parser

Specified by:
getName in interface Parser

changeParser

public boolean changeParser()
Description copied from interface: Parser
Should we change the parser

Specified by:
changeParser in interface Parser

getNewParser

public Parser getNewParser()
Description copied from interface: Parser
Get the new parser in the event that it should be changed.

Specified by:
getNewParser in interface Parser


Copyright © 2003 OSJava. All Rights Reserved.