com.sshtools.j2ssh.sftp

Class SshFxpOpen

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

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

Version:
$Revision: 1.16 $
Author:
$author$

Field Summary

static int
FXF_APPEND
static int
FXF_CREAT
static int
FXF_EXCL
static int
FXF_READ
static int
FXF_TRUNC
static int
FXF_WRITE
static int
SSH_FXP_OPEN

Constructor Summary

SshFxpOpen()
Creates a new SshFxpOpen object.
SshFxpOpen(UnsignedInteger32 id, String filename, UnsignedInteger32 pflags, FileAttributes attrs)

Method Summary

void
constructByteArray(ByteArrayWriter baw)
void
constructMessage(ByteArrayReader bar)
FileAttributes
getAttributes()
String
getFilename()
UnsignedInteger32
getId()
String
getMessageName()
UnsignedInteger32
getPflags()

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

constructByteArray, constructMessage, fromByteArray, getMessageName, getMessageType, toByteArray

Field Details

FXF_APPEND

public static final int FXF_APPEND
Field Value:
4

FXF_CREAT

public static final int FXF_CREAT
Field Value:
8

FXF_EXCL

public static final int FXF_EXCL
Field Value:
32

FXF_READ

public static final int FXF_READ
Field Value:
1

FXF_TRUNC

public static final int FXF_TRUNC
Field Value:
16

FXF_WRITE

public static final int FXF_WRITE
Field Value:
2

SSH_FXP_OPEN

public static final int SSH_FXP_OPEN
Field Value:
3

Constructor Details

SshFxpOpen

public SshFxpOpen()
Creates a new SshFxpOpen object.

SshFxpOpen

public SshFxpOpen(UnsignedInteger32 id,
                  String filename,
                  UnsignedInteger32 pflags,
                  FileAttributes attrs)

Method Details

constructByteArray

public void constructByteArray(ByteArrayWriter baw)
            throws IOException,
                   InvalidMessageException
Overrides:
constructByteArray in interface SubsystemMessage
Parameters:
baw -

constructMessage

public void constructMessage(ByteArrayReader bar)
            throws IOException,
                   InvalidMessageException
Overrides:
constructMessage in interface SubsystemMessage
Parameters:
bar -

getAttributes

public FileAttributes getAttributes()
Returns:

getFilename

public String getFilename()
Returns:

getId

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

getMessageName

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

getPflags

public UnsignedInteger32 getPflags()
Returns:

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