| java.lang.Object com.enterprisedt.net.ftp.FTPFile
FTPFile | public class FTPFile (Code) | | Represents a remote file (implementation)
author: Bruce Blackshaw version: $Revision: 1.17 $ |
UNIX | final public static int UNIX(Code) | | UNIX type
|
UNKNOWN | final public static int UNKNOWN(Code) | | Unknown remote server type
|
VMS | final public static int VMS(Code) | | VMS type
|
WINDOWS | final public static int WINDOWS(Code) | | Windows type
|
cvsId | final protected static String cvsId(Code) | | Revision control id
|
isDir | protected boolean isDir(Code) | | Is this a directory?
|
isLink | protected boolean isLink(Code) | | Is this file a symbolic link?
|
lastModified | protected Date lastModified(Code) | | Last modified
|
linkCount | protected int linkCount(Code) | | Number of links to file
|
linkedname | protected String linkedname(Code) | | Name of file this is linked to
|
permissions | protected String permissions(Code) | | Permission bits string
|
size | protected long size(Code) | | Size of file
|
FTPFile | public FTPFile(int type, String raw, String name, long size, boolean isDir, Date lastModified)(Code) | | Constructor
Parameters: type - type of file Parameters: raw - raw string returned from server Parameters: name - name of file Parameters: size - size of file Parameters: isDir - true if a directory Parameters: lastModified - last modified timestamp |
FTPFile | public FTPFile(String raw, String name, long size, boolean isDir, Date lastModified)(Code) | | Constructor
Parameters: raw - raw string returned from server Parameters: name - name of file Parameters: size - size of file Parameters: isDir - true if a directory Parameters: lastModified - last modified timestamp |
FTPFile | public FTPFile(String raw)(Code) | | Constructor
Parameters: raw - raw string returned from server |
created | public Date created()(Code) | | Get the created date for the file. This is not
supported by many servers, e.g. Unix does not record
the created date of a file.
Returns the created date. |
getLinkCount | public int getLinkCount()(Code) | | Returns the number of links to the file |
getLinkedname | public String getLinkedname()(Code) | | Returns the linkedname. |
getPermissions | public String getPermissions()(Code) | | Returns the permissions. |
getRaw | public String getRaw()(Code) | | Returns the raw server string. |
getType | public int getType()(Code) | | Get the type of file, i.e UNIX
the integer type of the file |
isDir | public boolean isDir()(Code) | | Returns the isDir. |
isLink | public boolean isLink()(Code) | | Returns true if file is a symlink |
lastModified | public Date lastModified()(Code) | | Returns the lastModified date. |
listFiles | public FTPFile[] listFiles()(Code) | | Returns an array of FTPFile objects denoting the files and directories in this
directory
FTPFile array |
setChildren | void setChildren(FTPFile[] children)(Code) | | Parameters: children - |
setCreated | public void setCreated(Date date)(Code) | | Set the created date
Parameters: date - |
setDir | public void setDir(boolean isDir)(Code) | | Parameters: isDir - The isDir to set. |
setGroup | public void setGroup(String group)(Code) | | Parameters: group - The group to set. |
setLastModified | public void setLastModified(Date date)(Code) | | Set the last modified date
Parameters: date - last modified date |
setLink | public void setLink(boolean isLink)(Code) | | Parameters: isLink - The isLink to set. |
setLinkCount | public void setLinkCount(int linkCount)(Code) | | Parameters: linkCount - new link count |
setLinkedName | public void setLinkedName(String linkedname)(Code) | | Parameters: linkedname - The linked name to set. |
setName | public void setName(String name)(Code) | | Set the name of the file
Parameters: name - name of file |
setOwner | public void setOwner(String owner)(Code) | | Parameters: owner - The owner to set. |
setPermissions | public void setPermissions(String permissions)(Code) | | Parameters: permissions - The permissions to set. |
setSize | public void setSize(long size)(Code) | | |
size | public long size()(Code) | | Returns the size. |
toString | public String toString()(Code) | | string representation |
|
|