thor.net
Class DefaultTelnetTerminalHandler

java.lang.Object
  |
  +--thor.net.DefaultTelnetTerminalHandler
All Implemented Interfaces:
TelnetTerminalHandler

public class DefaultTelnetTerminalHandler
extends java.lang.Object
implements TelnetTerminalHandler

Basic implementation of TelnetTerminalHandler, many telnet clients can extand this and just implement the NOP's. The LGPL applies to this software.
Unless otherwise stated the software is Copyright 1996,2000 Daniel Kristjansson


Constructor Summary
DefaultTelnetTerminalHandler()
           
 
Method Summary
 void addNotWantedOption(int pnIndex)
           
 void addWantedOption(int pnIndex)
          Add option to the list of desired options
 void BackSpace()
          NOP
 void Bell()
          uses default toolkit beep
 void CarriageReturn()
          NOP
 void ClearScreen()
          NOP
 void FormFeed()
          NOP
 int[] getNotWantedOptions()
          Returns list of options no longer desired
 boolean getOption(int pnIndex)
          Tells asker if option is on
 int[] getWantedOptions()
          Returns list of options desired
 void HorizontalTab()
          NOP
 boolean isNotWantedOption(int pnIndex)
          Tells asker if option is requested to be turned off
 boolean isWantedOption(int pnIndex)
          Tells asker if option is requested
 void LineFeed()
          NOP
 void Null()
          NOP
 void OtherCommands(int command)
          NOP
 void removeNotWantedOption(int pnIndex)
          Remove option from the list of options no longer desired
 void removeWantedOption(int pnIndex)
          Remove option from the list of desired options
 void setOption(int pnIndex, boolean pbValue)
          Turns option on
 void VerticalTab()
          NOP
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTelnetTerminalHandler

public DefaultTelnetTerminalHandler()
Method Detail

LineFeed

public void LineFeed()
NOP

Specified by:
LineFeed in interface TelnetTerminalHandler

CarriageReturn

public void CarriageReturn()
NOP

Specified by:
CarriageReturn in interface TelnetTerminalHandler

BackSpace

public void BackSpace()
NOP

Specified by:
BackSpace in interface TelnetTerminalHandler

Null

public void Null()
NOP

Specified by:
Null in interface TelnetTerminalHandler

FormFeed

public void FormFeed()
NOP

Specified by:
FormFeed in interface TelnetTerminalHandler

ClearScreen

public void ClearScreen()
NOP

Specified by:
ClearScreen in interface TelnetTerminalHandler

Bell

public void Bell()
uses default toolkit beep

Specified by:
Bell in interface TelnetTerminalHandler

VerticalTab

public void VerticalTab()
NOP

Specified by:
VerticalTab in interface TelnetTerminalHandler

HorizontalTab

public void HorizontalTab()
NOP

Specified by:
HorizontalTab in interface TelnetTerminalHandler

OtherCommands

public void OtherCommands(int command)
NOP

Specified by:
OtherCommands in interface TelnetTerminalHandler

getOption

public boolean getOption(int pnIndex)
Description copied from interface: TelnetTerminalHandler
Tells asker if option is on

Specified by:
getOption in interface TelnetTerminalHandler

setOption

public void setOption(int pnIndex,
                      boolean pbValue)
Description copied from interface: TelnetTerminalHandler
Turns option on

Specified by:
setOption in interface TelnetTerminalHandler

addWantedOption

public void addWantedOption(int pnIndex)
Add option to the list of desired options


isWantedOption

public boolean isWantedOption(int pnIndex)
Description copied from interface: TelnetTerminalHandler
Tells asker if option is requested

Specified by:
isWantedOption in interface TelnetTerminalHandler

isNotWantedOption

public boolean isNotWantedOption(int pnIndex)
Description copied from interface: TelnetTerminalHandler
Tells asker if option is requested to be turned off

Specified by:
isNotWantedOption in interface TelnetTerminalHandler

addNotWantedOption

public void addNotWantedOption(int pnIndex)

removeWantedOption

public void removeWantedOption(int pnIndex)
Description copied from interface: TelnetTerminalHandler
Remove option from the list of desired options

Specified by:
removeWantedOption in interface TelnetTerminalHandler

removeNotWantedOption

public void removeNotWantedOption(int pnIndex)
Description copied from interface: TelnetTerminalHandler
Remove option from the list of options no longer desired

Specified by:
removeNotWantedOption in interface TelnetTerminalHandler

getWantedOptions

public int[] getWantedOptions()
Description copied from interface: TelnetTerminalHandler
Returns list of options desired

Specified by:
getWantedOptions in interface TelnetTerminalHandler

getNotWantedOptions

public int[] getNotWantedOptions()
Description copied from interface: TelnetTerminalHandler
Returns list of options no longer desired

Specified by:
getNotWantedOptions in interface TelnetTerminalHandler