com.sshtools.j2ssh.sftp

Class SshFxpRead

Implemented Interfaces:
com.sshtools.j2ssh.sftp.MessageRequestId

public class SshFxpRead
extends SubsystemMessage
implements com.sshtools.j2ssh.sftp.MessageRequestId

Version:
$Revision: 1.17 $
Author:
$author$

Field Summary

static int
SSH_FXP_READ

Constructor Summary

SshFxpRead()
Creates a new SshFxpRead object.
SshFxpRead(UnsignedInteger32 id, byte[] handle, UnsignedInteger64 offset, UnsignedInteger32 length)
Creates a new SshFxpRead object.

Method Summary

void
constructByteArray(ByteArrayWriter baw)
void
constructMessage(ByteArrayReader bar)
byte[]
getHandle()
UnsignedInteger32
getId()
UnsignedInteger32
getLength()
String
getMessageName()
UnsignedInteger64
getOffset()

Methods inherited from class com.sshtools.j2ssh.subsystem.SubsystemMessage

constructByteArray, constructMessage, fromByteArray, getMessageName, getMessageType, toByteArray

Field Details

SSH_FXP_READ

public static final int SSH_FXP_READ
Field Value:
5

Constructor Details

SshFxpRead

public SshFxpRead()
Creates a new SshFxpRead object.

SshFxpRead

public SshFxpRead(UnsignedInteger32 id,
                  byte[] handle,
                  UnsignedInteger64 offset,
                  UnsignedInteger32 length)
Creates a new SshFxpRead object.
Parameters:
id -
handle -
offset -
length -

Method Details

constructByteArray

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

constructMessage

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

getHandle

public byte[] getHandle()
Returns:

getId

public UnsignedInteger32 getId()
Specified by:
getId in interface com.sshtools.j2ssh.sftp.MessageRequestId
Returns:

getLength

public UnsignedInteger32 getLength()
Returns:

getMessageName

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

getOffset

public UnsignedInteger64 getOffset()
Returns:

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