com.maverick.ssh
Interface SshIO

All Known Subinterfaces:
SshChannel, SshSession, SshTransport, SshTunnel
All Known Implementing Classes:
HttpProxyTransport, HttpProxyTransportWrapper, SocketTransport, SocketWrapper, SocksProxyTransport, Ssh2Session, com.maverick.ssh.message.SshAbstractChannel

public interface SshIO

Base interface for all SSH related IO interfaces.

Author:
Lee David Painter

Method Summary
 void close()
          Close the channel.
 java.io.InputStream getInputStream()
          Get an InputStream to read incoming channel data.
 java.io.OutputStream getOutputStream()
          Get an OutputStream to write outgoing channel data.
 

Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Get an InputStream to read incoming channel data.

Returns:
the channels InputStream
Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Get an OutputStream to write outgoing channel data.

Returns:
the channels OutputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Close the channel.

Throws:
SshIOException
java.io.IOException


Copyright © 2003 3SP LTD. All Rights Reserved.