|
Sun Adapter for Batch/FTP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stc.connector.ssh.ftp.client.impl.SFTPFileAttributesImpl
public class SFTPFileAttributesImpl
Field Summary |
---|
Fields inherited from interface com.stc.connector.ssh.ftp.client.SFTPFileAttributes |
---|
S_IFBLK, S_IFCHR, S_IFDIR, S_IFIFO, S_IFLNK, S_IFMT, S_IFREG, S_IFSOCK, S_IRGRP, S_IROTH, S_IRUSR, S_ISGID, S_ISUID, S_IWGRP, S_IWOTH, S_IWUSR, S_IXGRP, S_IXOTH, S_IXUSR, SSH_FILEXFER_TYPE_DIRECTORY, SSH_FILEXFER_TYPE_REGULAR, SSH_FILEXFER_TYPE_SPECIAL, SSH_FILEXFER_TYPE_SYMLINK, SSH_FILEXFER_TYPE_UNKNOWN |
Method Summary | |
---|---|
static SFTPFileAttributes |
createFileAttributes(com.maverick.sftp.SftpFileAttributes attr)
|
long |
getAccessedTime()
Get the last accessed time. |
long |
getCreationTime()
Get the creation time of this file. |
java.lang.String |
getGID()
Get the GID of this file. |
java.lang.String |
getMaskString()
Return the UNIX style mode mask |
long |
getModifiedTime()
Get the last modified time. |
int |
getPermissions()
Get the current permissions value. |
java.lang.String |
getPermissionsString()
Returns a formatted permissions string. |
long |
getSize()
Get the size of the file. |
int |
getType()
the type of the entry: public static final int SSH_FILEXFER_TYPE_DIRECTORY=2; public static final int SSH_FILEXFER_TYPE_REGULAR=1; public static final int SSH_FILEXFER_TYPE_SPECIAL=4; public static final int SSH_FILEXFER_TYPE_SYMLINK=3; public static final int SSH_FILEXFER_TYPE_UNKNOWN=5; |
java.lang.String |
getUID()
Get the UID of the owner. |
boolean |
isBlock()
Determine whether these attributes refer to a block special file. |
boolean |
isCharacter()
Determine whether these attributes refer to a character device. |
boolean |
isDirectory()
Determine whether these attributes refer to a directory |
boolean |
isFifo()
Determine whether these attributes refer to a pipe. |
boolean |
isFile()
Determine whether these attributes refer to a file. |
boolean |
isFlagSet(int flag)
Determine if a permissions flag is set. |
boolean |
isLink()
Determine whether these attributes refer to a symbolic link. |
boolean |
isSocket()
Determine whether these attributes refer to a socket. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SFTPFileAttributes createFileAttributes(com.maverick.sftp.SftpFileAttributes attr)
public long getAccessedTime()
SFTPFileAttributes
getAccessedTime
in interface SFTPFileAttributes
public long getCreationTime()
SFTPFileAttributes
getCreationTime
in interface SFTPFileAttributes
public java.lang.String getGID()
SFTPFileAttributes
getGID
in interface SFTPFileAttributes
public java.lang.String getMaskString()
SFTPFileAttributes
getMaskString
in interface SFTPFileAttributes
public long getModifiedTime()
SFTPFileAttributes
getModifiedTime
in interface SFTPFileAttributes
public int getPermissions()
SFTPFileAttributes
getPermissions
in interface SFTPFileAttributes
public java.lang.String getPermissionsString()
SFTPFileAttributes
getPermissionsString
in interface SFTPFileAttributes
public long getSize()
SFTPFileAttributes
getSize
in interface SFTPFileAttributes
public int getType()
SFTPFileAttributes
getType
in interface SFTPFileAttributes
public java.lang.String getUID()
SFTPFileAttributes
getUID
in interface SFTPFileAttributes
public boolean isBlock()
SFTPFileAttributes
isBlock
in interface SFTPFileAttributes
public boolean isCharacter()
SFTPFileAttributes
isCharacter
in interface SFTPFileAttributes
public boolean isDirectory()
SFTPFileAttributes
isDirectory
in interface SFTPFileAttributes
public boolean isFifo()
SFTPFileAttributes
isFifo
in interface SFTPFileAttributes
public boolean isFile()
SFTPFileAttributes
isFile
in interface SFTPFileAttributes
public boolean isFlagSet(int flag)
SFTPFileAttributes
isFlagSet
in interface SFTPFileAttributes
public boolean isLink()
SFTPFileAttributes
isLink
in interface SFTPFileAttributes
public boolean isSocket()
SFTPFileAttributes
isSocket
in interface SFTPFileAttributes
|
Sun Adapter for Batch/FTP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |