de.mud.ssh
Class SshIO
java.lang.Object
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
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)
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