com.sshtools.j2ssh.sftp
Class SshFxpOpen
java.lang.Object
com.sshtools.j2ssh.subsystem.SubsystemMessage
com.sshtools.j2ssh.sftp.SshFxpOpen
- All Implemented Interfaces:
- MessageRequestId
public class SshFxpOpen
- extends SubsystemMessage
- implements MessageRequestId
- Version:
- $Revision: 1.1 $
- Author:
- $author$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
id
private UnsignedInteger32 id
filename
private java.lang.String filename
pflags
private UnsignedInteger32 pflags
attrs
private FileAttributes attrs
SshFxpOpen
public SshFxpOpen(UnsignedInteger32 id,
java.lang.String filename,
UnsignedInteger32 pflags,
FileAttributes attrs)
SshFxpOpen
public SshFxpOpen()
- Creates a new SshFxpOpen object.
getId
public UnsignedInteger32 getId()
- Specified by:
getId
in interface MessageRequestId
- 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 class SubsystemMessage
- Parameters:
bar
-
- Throws:
java.io.IOException
InvalidMessageException
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