|
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 SFTPFileAttributespublic long getCreationTime()
SFTPFileAttributes
getCreationTime in interface SFTPFileAttributespublic java.lang.String getGID()
SFTPFileAttributes
getGID in interface SFTPFileAttributespublic java.lang.String getMaskString()
SFTPFileAttributes
getMaskString in interface SFTPFileAttributespublic long getModifiedTime()
SFTPFileAttributes
getModifiedTime in interface SFTPFileAttributespublic int getPermissions()
SFTPFileAttributes
getPermissions in interface SFTPFileAttributespublic java.lang.String getPermissionsString()
SFTPFileAttributes
getPermissionsString in interface SFTPFileAttributespublic long getSize()
SFTPFileAttributes
getSize in interface SFTPFileAttributespublic int getType()
SFTPFileAttributes
getType in interface SFTPFileAttributespublic java.lang.String getUID()
SFTPFileAttributes
getUID in interface SFTPFileAttributespublic boolean isBlock()
SFTPFileAttributes
isBlock in interface SFTPFileAttributespublic boolean isCharacter()
SFTPFileAttributes
isCharacter in interface SFTPFileAttributespublic boolean isDirectory()
SFTPFileAttributes
isDirectory in interface SFTPFileAttributespublic boolean isFifo()
SFTPFileAttributes
isFifo in interface SFTPFileAttributespublic boolean isFile()
SFTPFileAttributes
isFile in interface SFTPFileAttributespublic boolean isFlagSet(int flag)
SFTPFileAttributes
isFlagSet in interface SFTPFileAttributespublic boolean isLink()
SFTPFileAttributes
isLink in interface SFTPFileAttributespublic 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 | ||||||||