de.mud.ssh
Class SshIO
java.lang.Object
|
+--de.mud.ssh.SshIO
- public abstract class SshIO
- extends java.lang.Object
Constructor Summary |
SshIO()
Initialise SshIO |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dataToSend
public java.lang.String dataToSend
hashHostKey
public java.lang.String hashHostKey
SshIO
public SshIO()
- Initialise SshIO
setLogin
public void setLogin(java.lang.String user)
setPassword
public void setPassword(java.lang.String password)
handleSSH
public byte[] handleSSH(byte[] b)
throws java.io.IOException
- Read data from the remote host. Blocks until data is available.
Returns an array of bytes that will be displayed.
write
protected abstract void write(byte[] buf)
throws java.io.IOException
getTerminalType
public abstract java.lang.String getTerminalType()
disconnect
public void disconnect()
sendData
public void sendData(java.lang.String str)
throws java.io.IOException