com.mindbright.ssh2
Class SSH2TerminalAdapterImpl

java.lang.Object
  |
  +--com.mindbright.terminal.TerminalInputChaff
        |
        +--com.mindbright.ssh2.SSH2TerminalAdapterImpl
All Implemented Interfaces:
java.lang.Runnable, SSH2ChannelCloseListener, SSH2TerminalAdapter, TerminalInputListener

public class SSH2TerminalAdapterImpl
extends TerminalInputChaff
implements SSH2TerminalAdapter, SSH2ChannelCloseListener


Constructor Summary
SSH2TerminalAdapterImpl(TerminalWin terminal)
           
 
Method Summary
 void attach(SSH2SessionChannel session)
           
 void closed(SSH2Channel channel)
           
 void detach()
           
 Terminal getTerminal()
           
 void sendBytes(byte[] b)
           
protected  void sendFakeChar()
           
protected  void sendTypedChar(int c)
           
 void signalWindowChanged(int rows, int cols, int vpixels, int hpixels)
           
 void startChaff()
           
 void stopChaff()
           
 
Methods inherited from class com.mindbright.terminal.TerminalInputChaff
dispenseChaff, run, typedChar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSH2TerminalAdapterImpl

public SSH2TerminalAdapterImpl(TerminalWin terminal)
Method Detail

getTerminal

public Terminal getTerminal()
Specified by:
getTerminal in interface SSH2TerminalAdapter

attach

public void attach(SSH2SessionChannel session)
Specified by:
attach in interface SSH2TerminalAdapter

detach

public void detach()
Specified by:
detach in interface SSH2TerminalAdapter

startChaff

public void startChaff()
Specified by:
startChaff in interface SSH2TerminalAdapter
Overrides:
startChaff in class TerminalInputChaff

stopChaff

public void stopChaff()
Specified by:
stopChaff in interface SSH2TerminalAdapter
Overrides:
stopChaff in class TerminalInputChaff

closed

public void closed(SSH2Channel channel)
Specified by:
closed in interface SSH2ChannelCloseListener

sendTypedChar

protected void sendTypedChar(int c)
Specified by:
sendTypedChar in class TerminalInputChaff

sendFakeChar

protected void sendFakeChar()
Specified by:
sendFakeChar in class TerminalInputChaff

sendBytes

public void sendBytes(byte[] b)
Specified by:
sendBytes in interface TerminalInputListener

signalWindowChanged

public void signalWindowChanged(int rows,
                                int cols,
                                int vpixels,
                                int hpixels)
Specified by:
signalWindowChanged in interface TerminalInputListener