com.sshtools.j2ssh.sftp
Class SshFxpWrite

java.lang.Object
  extended by com.sshtools.j2ssh.subsystem.SubsystemMessage
      extended by com.sshtools.j2ssh.sftp.SshFxpWrite
All Implemented Interfaces:
MessageRequestId

public class SshFxpWrite
extends SubsystemMessage
implements MessageRequestId

Version:
$Revision: 1.1 $
Author:
$author$

Field Summary
private  byte[] data
           
private  byte[] handle
           
private  UnsignedInteger32 id
           
private  UnsignedInteger64 offset
           
static int SSH_FXP_WRITE
           
 
Constructor Summary
SshFxpWrite()
          Creates a new SshFxpWrite object.
SshFxpWrite(UnsignedInteger32 id, byte[] handle, UnsignedInteger64 offset, byte[] data, int off, int len)
          Creates a new SshFxpWrite object.
 
Method Summary
 void constructByteArray(ByteArrayWriter baw)
           
 void constructMessage(ByteArrayReader bar)
           
 byte[] getData()
           
 byte[] getHandle()
           
 UnsignedInteger32 getId()
           
 java.lang.String getMessageName()
           
 UnsignedInteger64 getOffset()
           
 
Methods inherited from class com.sshtools.j2ssh.subsystem.SubsystemMessage
fromByteArray, getMessageType, toByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SSH_FXP_WRITE

public static final int SSH_FXP_WRITE
See Also:
Constant Field Values

id

private UnsignedInteger32 id

handle

private byte[] handle

offset

private UnsignedInteger64 offset

data

private byte[] data
Constructor Detail

SshFxpWrite

public SshFxpWrite()
Creates a new SshFxpWrite object.


SshFxpWrite

public SshFxpWrite(UnsignedInteger32 id,
                   byte[] handle,
                   UnsignedInteger64 offset,
                   byte[] data,
                   int off,
                   int len)
Creates a new SshFxpWrite object.

Parameters:
id -
handle -
offset -
data -
off -
len -
Method Detail

getId

public UnsignedInteger32 getId()
Specified by:
getId in interface MessageRequestId
Returns:

getHandle

public byte[] getHandle()
Returns:

getOffset

public UnsignedInteger64 getOffset()
Returns:

getData

public byte[] getData()
Returns:

constructMessage

public void constructMessage(ByteArrayReader bar)
                      throws java.io.IOException,
                             InvalidMessageException
Specified by:
constructMessage in class SubsystemMessage
Parameters:
bar -
Throws:
java.io.IOException
InvalidMessageException - DOCUMENT ME!

getMessageName

public java.lang.String getMessageName()
Specified by:
getMessageName in class SubsystemMessage
Returns:

constructByteArray

public void constructByteArray(ByteArrayWriter baw)
                        throws java.io.IOException,
                               InvalidMessageException
Specified by:
constructByteArray in class SubsystemMessage
Parameters:
baw -
Throws:
java.io.IOException
InvalidMessageException - DOCUMENT ME!