|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sshtools.j2ssh.transport.SshMessage | +--com.sshtools.j2ssh.connection.SshMsgChannelData
Implements the SSH_MSG_CHANNEL_DATA message.
Field Summary | |
static int |
SSH_MSG_CHANNEL_DATA
The message id |
Constructor Summary | |
SshMsgChannelData()
Constructor for the SshMsgChannelData object. |
|
SshMsgChannelData(long recipientChannel,
byte[] channelData)
Constructor for the SshMsgChannelData object |
Method Summary | |
protected void |
constructByteArray(ByteArrayWriter baw)
Abstract method implementation to construct a byte array containing the message data. |
protected void |
constructMessage(ByteArrayReader bar)
Abstract method implementation to construct the message from a byte array. |
byte[] |
getChannelData()
Gets the channel data. |
java.lang.String |
getMessageName()
Gets the message name for debugging. |
long |
getRecipientChannel()
Gets the recipient channel id. |
Methods inherited from class com.sshtools.j2ssh.transport.SshMessage |
fromByteArray, getMessageId, toByteArray |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SSH_MSG_CHANNEL_DATA
Constructor Detail |
public SshMsgChannelData(long recipientChannel, byte[] channelData)
recipientChannel
- The reciepient channel idchannelData
- The channel datapublic SshMsgChannelData()
Constructor for the SshMsgChannelData object.
Method Detail |
public java.lang.String getMessageName()
Gets the message name for debugging.
getMessageName
in class SshMessage
public long getRecipientChannel()
Gets the recipient channel id.
public byte[] getChannelData()
Gets the channel data.
protected void constructMessage(ByteArrayReader bar) throws InvalidMessageException
Abstract method implementation to construct the message from a byte array.
constructMessage
in class SshMessage
bar
- The byte array being read
InvalidMessageException
- Thrown if the data is invalidprotected void constructByteArray(ByteArrayWriter baw) throws InvalidMessageException
Abstract method implementation to construct a byte array containing the message data.
constructByteArray
in class SshMessage
baw
- The byte array being written
InvalidMessageException
- Thrown if the data cannot be written
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |