com.sshtools.j2ssh.subsystem
Class SubsystemMessage

java.lang.Object
  extended by com.sshtools.j2ssh.subsystem.SubsystemMessage
Direct Known 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  java.lang.String getMessageName()
           
 int getMessageType()
           
 byte[] toByteArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubsystemMessage

public SubsystemMessage(int type)
Creates a new SubsystemMessage object.

Parameters:
type -
Method Detail

getMessageName

public abstract java.lang.String getMessageName()
Returns:

getMessageType

public int getMessageType()
Returns:

constructByteArray

public abstract void constructByteArray(ByteArrayWriter baw)
                                 throws InvalidMessageException,
                                        java.io.IOException
Parameters:
baw -
Throws:
InvalidMessageException
java.io.IOException

constructMessage

public abstract void constructMessage(ByteArrayReader bar)
                               throws InvalidMessageException,
                                      java.io.IOException
Parameters:
bar -
Throws:
InvalidMessageException
java.io.IOException

fromByteArray

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

toByteArray

public byte[] toByteArray()
                   throws InvalidMessageException
Returns:
Throws:
InvalidMessageException


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