public abstract class ChannelAdapter extends Object implements ChannelEventListener
Constructor and Description |
---|
ChannelAdapter() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void channelOpened(SshChannel channel)
ChannelEventListener
channelOpened
in interface ChannelEventListener
channel
- the opened channel.public void channelClosing(SshChannel channel)
ChannelEventListener
channelClosing
in interface ChannelEventListener
channel
- the channel closing.public void channelClosed(SshChannel channel)
ChannelEventListener
channelClosed
in interface ChannelEventListener
channel
- the closed channel.public void channelEOF(SshChannel channel)
ChannelEventListener
channelEOF
in interface ChannelEventListener
channel
- SshChannelpublic void dataReceived(SshChannel channel, byte[] buf, int off, int len)
ChannelEventListener
dataReceived
in interface ChannelEventListener
channel
- SshChannelbuf
- byte[]off
- intlen
- intpublic void dataSent(SshChannel channel, byte[] buf, int off, int len)
ChannelEventListener
dataSent
in interface ChannelEventListener
channel
- SshChannelbuf
- byte[]off
- intlen
- intpublic void extendedDataReceived(SshChannel channel, byte[] data, int off, int len, int extendedDataType)
ChannelEventListener
extendedDataReceived
in interface ChannelEventListener
extendedDataType
- the extended data typeCopyright © 2024. All rights reserved.