com.maverick.ssh
Class ChannelAdapter

java.lang.Object
  extended bycom.maverick.ssh.ChannelAdapter
All Implemented Interfaces:
ChannelEventListener

public abstract class ChannelAdapter
extends java.lang.Object
implements ChannelEventListener

An adapter for the ChannelEventListener.

Author:
Lee David Painter

Constructor Summary
ChannelAdapter()
           
 
Method Summary
 void channelClosed(SshChannel channel)
          A channel is closed.
 void channelClosing(SshChannel channel)
          A channel is closing.
 void channelEOF(SshChannel channel)
          A channel's input is EOF.
 void channelOpened(SshChannel channel)
          A channel has been opened.
 void dataReceived(SshChannel channel, byte[] buf, int off, int len)
          A block of data has been received by the channel.
 void dataSent(SshChannel channel, byte[] buf, int off, int len)
          A block of data has been sent by the channel.
 void extendedDataReceived(SshChannel channel, byte[] data, int off, int len, int extendedDataType)
          A block of extended data has been received by the channel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelAdapter

public ChannelAdapter()
Method Detail

channelOpened

public void channelOpened(SshChannel channel)
Description copied from interface: ChannelEventListener
A channel has been opened. This is called once the client has confirmed, or received a confirmation from the server that a channel has been opened.

Specified by:
channelOpened in interface ChannelEventListener
Parameters:
channel - the opened channel.

channelClosing

public void channelClosing(SshChannel channel)
Description copied from interface: ChannelEventListener
A channel is closing. This is called before a channel is confirmed as being closed.

Specified by:
channelClosing in interface ChannelEventListener
Parameters:
channel - the channel closing.

channelClosed

public void channelClosed(SshChannel channel)
Description copied from interface: ChannelEventListener
A channel is closed. This is called when the channel has finally been closed.

Specified by:
channelClosed in interface ChannelEventListener
Parameters:
channel - the closed channel.

channelEOF

public void channelEOF(SshChannel channel)
Description copied from interface: ChannelEventListener
A channel's input is EOF. This is called when the remote side reports that it will not be sending any more data.

Specified by:
channelEOF in interface ChannelEventListener
Parameters:
channel - SshChannel

dataReceived

public void dataReceived(SshChannel channel,
                         byte[] buf,
                         int off,
                         int len)
Description copied from interface: ChannelEventListener
A block of data has been received by the channel. This implementation should provide the data but not interfere with normal data processing of the channel.

Specified by:
dataReceived in interface ChannelEventListener
Parameters:
channel - SshChannel
buf - byte[]
off - int
len - int

dataSent

public void dataSent(SshChannel channel,
                     byte[] buf,
                     int off,
                     int len)
Description copied from interface: ChannelEventListener
A block of data has been sent by the channel. This implementation should provide the data but not interfere with normal data processing of the channel.

Specified by:
dataSent in interface ChannelEventListener
Parameters:
channel - SshChannel
buf - byte[]
off - int
len - int

extendedDataReceived

public void extendedDataReceived(SshChannel channel,
                                 byte[] data,
                                 int off,
                                 int len,
                                 int extendedDataType)
Description copied from interface: ChannelEventListener
A block of extended data has been received by the channel.

Specified by:
extendedDataReceived in interface ChannelEventListener
Parameters:
channel -
data -
off -
len -
extendedDataType - the extended data type


Copyright © 2003 3SP LTD. All Rights Reserved.