com.sshtools.j2ssh.connection

Class SshMsgChannelData


public class SshMsgChannelData
extends SshMessage

Version:
$Revision: 1.22 $
Author:
$author$

Field Summary

static int
SSH_MSG_CHANNEL_DATA

Constructor Summary

SshMsgChannelData()
Creates a new SshMsgChannelData object.
SshMsgChannelData(long recipientChannel, byte[] channelData)
Creates a new SshMsgChannelData object.

Method Summary

protected void
constructByteArray(ByteArrayWriter baw)
protected void
constructMessage(ByteArrayReader bar)
byte[]
getChannelData()
long
getChannelDataLength()
String
getMessageName()
long
getRecipientChannel()

Methods inherited from class com.sshtools.j2ssh.transport.SshMessage

constructByteArray, constructMessage, fromByteArray, getMessageId, getMessageId, getMessageName, toByteArray

Field Details

SSH_MSG_CHANNEL_DATA

public static final int SSH_MSG_CHANNEL_DATA
Field Value:
94

Constructor Details

SshMsgChannelData

public SshMsgChannelData()
Creates a new SshMsgChannelData object.

SshMsgChannelData

public SshMsgChannelData(long recipientChannel,
                         byte[] channelData)
Creates a new SshMsgChannelData object.
Parameters:
recipientChannel -
channelData -

Method Details

constructByteArray

protected void constructByteArray(ByteArrayWriter baw)
            throws InvalidMessageException
Overrides:
constructByteArray in interface SshMessage
Parameters:
baw -

constructMessage

protected void constructMessage(ByteArrayReader bar)
            throws InvalidMessageException
Overrides:
constructMessage in interface SshMessage
Parameters:
bar -

getChannelData

public byte[] getChannelData()
Returns:

getChannelDataLength

public long getChannelDataLength()
Returns:

getMessageName

public String getMessageName()
Overrides:
getMessageName in interface SshMessage
Returns:

getRecipientChannel

public long getRecipientChannel()
Returns:

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.