com.sshtools.j2ssh.connection

Class SshMsgChannelExtendedData


public class SshMsgChannelExtendedData
extends SshMessage

Version:
$Revision: 1.21 $
Author:
$author$

Field Summary

static int
SSH_EXTENDED_DATA_STDERR
static int
SSH_MSG_CHANNEL_EXTENDED_DATA

Constructor Summary

SshMsgChannelExtendedData()
Creates a new SshMsgChannelExtendedData object.
SshMsgChannelExtendedData(long recipientChannel, int dataTypeCode, byte[] channelData)
Creates a new SshMsgChannelExtendedData object.

Method Summary

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

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

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

Field Details

SSH_EXTENDED_DATA_STDERR

public static final int SSH_EXTENDED_DATA_STDERR
Field Value:
1

SSH_MSG_CHANNEL_EXTENDED_DATA

public static final int SSH_MSG_CHANNEL_EXTENDED_DATA
Field Value:
95

Constructor Details

SshMsgChannelExtendedData

public SshMsgChannelExtendedData()
Creates a new SshMsgChannelExtendedData object.

SshMsgChannelExtendedData

public SshMsgChannelExtendedData(long recipientChannel,
                                 int dataTypeCode,
                                 byte[] channelData)
Creates a new SshMsgChannelExtendedData object.
Parameters:
recipientChannel -
dataTypeCode -
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:

getDataTypeCode

public int getDataTypeCode()
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.