Package com.sshtools.j2ssh.sftp
Class SshFxpOpen
- java.lang.Object
-
- com.sshtools.j2ssh.subsystem.SubsystemMessage
-
- com.sshtools.j2ssh.sftp.SshFxpOpen
-
public class SshFxpOpen extends SubsystemMessage
- Version:
- $Revision: 1.16 $
- Author:
- $author$
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description SshFxpOpen()
Creates a new SshFxpOpen object.SshFxpOpen(UnsignedInteger32 id, java.lang.String filename, UnsignedInteger32 pflags, FileAttributes attrs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
constructByteArray(ByteArrayWriter baw)
void
constructMessage(ByteArrayReader bar)
FileAttributes
getAttributes()
java.lang.String
getFilename()
UnsignedInteger32
getId()
java.lang.String
getMessageName()
UnsignedInteger32
getPflags()
-
Methods inherited from class com.sshtools.j2ssh.subsystem.SubsystemMessage
fromByteArray, getMessageType, toByteArray
-
-
-
-
Field Detail
-
SSH_FXP_OPEN
public static final int SSH_FXP_OPEN
- See Also:
- Constant Field Values
-
FXF_READ
public static final int FXF_READ
- See Also:
- Constant Field Values
-
FXF_WRITE
public static final int FXF_WRITE
- See Also:
- Constant Field Values
-
FXF_APPEND
public static final int FXF_APPEND
- See Also:
- Constant Field Values
-
FXF_CREAT
public static final int FXF_CREAT
- See Also:
- Constant Field Values
-
FXF_TRUNC
public static final int FXF_TRUNC
- See Also:
- Constant Field Values
-
FXF_EXCL
public static final int FXF_EXCL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SshFxpOpen
public SshFxpOpen(UnsignedInteger32 id, java.lang.String filename, UnsignedInteger32 pflags, FileAttributes attrs)
-
SshFxpOpen
public SshFxpOpen()
Creates a new SshFxpOpen object.
-
-
Method Detail
-
getId
public UnsignedInteger32 getId()
- Returns:
-
getFilename
public java.lang.String getFilename()
- Returns:
-
getPflags
public UnsignedInteger32 getPflags()
- Returns:
-
getAttributes
public FileAttributes getAttributes()
- Returns:
-
constructMessage
public void constructMessage(ByteArrayReader bar) throws java.io.IOException, InvalidMessageException
- Specified by:
constructMessage
in classSubsystemMessage
- Parameters:
bar
-- Throws:
java.io.IOException
InvalidMessageException
-
getMessageName
public java.lang.String getMessageName()
- Specified by:
getMessageName
in classSubsystemMessage
- Returns:
-
constructByteArray
public void constructByteArray(ByteArrayWriter baw) throws java.io.IOException, InvalidMessageException
- Specified by:
constructByteArray
in classSubsystemMessage
- Parameters:
baw
-- Throws:
java.io.IOException
InvalidMessageException
-
-