com.sshtools.j2ssh.subsystem

Class SubsystemMessage

Known Direct Subclasses:
SshFxpAttrs, SshFxpClose, SshFxpData, SshFxpFSetStat, SshFxpFStat, SshFxpHandle, SshFxpInit, SshFxpLStat, SshFxpMkdir, SshFxpName, SshFxpOpen, SshFxpOpenDir, SshFxpRead, SshFxpReadDir, SshFxpReadlink, SshFxpRealPath, SshFxpRemove, SshFxpRename, SshFxpRmdir, SshFxpSetStat, SshFxpStat, SshFxpStatus, SshFxpSymlink, SshFxpVersion, SshFxpWrite

public abstract class SubsystemMessage
extends java.lang.Object

Version:
$Revision: 1.19 $
Author:
$author$

Constructor Summary

SubsystemMessage(int type)
Creates a new SubsystemMessage object.

Method Summary

abstract void
constructByteArray(ByteArrayWriter baw)
abstract void
constructMessage(ByteArrayReader bar)
void
fromByteArray(byte[] data)
abstract String
getMessageName()
int
getMessageType()
byte[]
toByteArray()

Constructor Details

SubsystemMessage

public SubsystemMessage(int type)
Creates a new SubsystemMessage object.
Parameters:
type -

Method Details

constructByteArray

public abstract void constructByteArray(ByteArrayWriter baw)
            throws InvalidMessageException,
                   IOException
Parameters:
baw -

constructMessage

public abstract void constructMessage(ByteArrayReader bar)
            throws InvalidMessageException,
                   IOException
Parameters:
bar -

fromByteArray

public void fromByteArray(byte[] data)
            throws InvalidMessageException
Parameters:
data -

getMessageName

public abstract String getMessageName()
Returns:

getMessageType

public int getMessageType()
Returns:

toByteArray

public byte[] toByteArray()
            throws InvalidMessageException
Returns:

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