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 intFXF_APPENDstatic intFXF_CREATstatic intFXF_EXCLstatic intFXF_READstatic intFXF_TRUNCstatic intFXF_WRITEstatic intSSH_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 voidconstructByteArray(ByteArrayWriter baw)voidconstructMessage(ByteArrayReader bar)FileAttributesgetAttributes()java.lang.StringgetFilename()UnsignedInteger32getId()java.lang.StringgetMessageName()UnsignedInteger32getPflags()-
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:
constructMessagein classSubsystemMessage- Parameters:
bar-- Throws:
java.io.IOExceptionInvalidMessageException
-
getMessageName
public java.lang.String getMessageName()
- Specified by:
getMessageNamein classSubsystemMessage- Returns:
-
constructByteArray
public void constructByteArray(ByteArrayWriter baw) throws java.io.IOException, InvalidMessageException
- Specified by:
constructByteArrayin classSubsystemMessage- Parameters:
baw-- Throws:
java.io.IOExceptionInvalidMessageException
-
-