de.mud.ssh
Class SshIO

java.lang.Object
  extended by de.mud.ssh.SshIO

public abstract class SshIO
extends java.lang.Object

Secure Shell IO

Version:
$Id: SshIO.java 506 2005-10-25 10:07:21Z marcus $
Author:
Marcus Meissner

Field Summary
 java.lang.String dataToSend
           
 java.lang.String hashHostKey
           
 
Constructor Summary
SshIO()
          Initialise SshIO
 
Method Summary
 void disconnect()
           
abstract  java.lang.String getTerminalType()
           
 byte[] handleSSH(byte[] buff)
          Read data from the remote host.
 void sendData(java.lang.String str)
           
 void setLogin(java.lang.String user)
           
 void setPassword(java.lang.String password)
           
 void setWindowSize(int columns, int rows)
           
protected abstract  void write(byte[] buf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataToSend

public java.lang.String dataToSend

hashHostKey

public java.lang.String hashHostKey
Constructor Detail

SshIO

public SshIO()
Initialise SshIO

Method Detail

setLogin

public void setLogin(java.lang.String user)

setPassword

public void setPassword(java.lang.String password)

write

protected abstract void write(byte[] buf)
                       throws java.io.IOException
Throws:
java.io.IOException

getTerminalType

public abstract java.lang.String getTerminalType()

disconnect

public void disconnect()

setWindowSize

public void setWindowSize(int columns,
                          int rows)
                   throws java.io.IOException
Throws:
java.io.IOException

sendData

public void sendData(java.lang.String str)
              throws java.io.IOException
Throws:
java.io.IOException

handleSSH

public byte[] handleSSH(byte[] buff)
                 throws java.io.IOException
Read data from the remote host. Blocks until data is available. Returns an array of bytes that will be displayed.

Throws:
java.io.IOException