Method Summary |
|
public String | getGroup() Returns the name of the group owning the file. |
public int | getHardLinkCount() Return the number of hard links to this file. |
public String | getLink() If the FTPFile is a symbolic link, this method returns the name of the
file being pointed to by the symbolic link. |
public String | getName() Return the name of the file. |
public String | getRawListing() Get the original FTP server raw listing used to initialize the FTPFile. |
public long | getSize() Return the file size in bytes. |
public Calendar | getTimestamp() Returns the file timestamp. |
public int | getType() Return the type of the file (one of the _TYPE constants),
e.g., if it is a directory, a regular file, or a symbolic link. |
public String | getUser() Returns the name of the user owning the file. |
public boolean | hasPermission(int access, int permission) Determines if the given access group (one of the _ACCESS
constants) has the given access permission (one of the
_PERMISSION constants) to the file. |
public boolean | isDirectory() Determine if the file is a directory. |
public boolean | isFile() Determine if the file is a regular file. |
public boolean | isSymbolicLink() Determine if the file is a symbolic link. |
public boolean | isUnknown() Determine if the type of the file is unknown. |
public void | setGroup(String group) Set the name of the group owning the file. |
public void | setHardLinkCount(int links) Set the number of hard links to this file. |
public void | setLink(String link) If the FTPFile is a symbolic link, use this method to set the name of the
file being pointed to by the symbolic link. |
public void | setName(String name) Set the name of the file. |
public void | setPermission(int access, int permission, boolean value) Set if the given access group (one of the _ACCESS
constants) has the given access permission (one of the
_PERMISSION constants) to the file. |
public void | setRawListing(String rawListing) Set the original FTP server raw listing from which the FTPFile was
created. |
public void | setSize(long size) Set the file size in bytes. |
public void | setTimestamp(Calendar date) Set the file timestamp. |
public void | setType(int type) Set the type of the file (DIRECTORY_TYPE ,
FILE_TYPE , etc.). |
public void | setUser(String user) Set the name of the user owning the file. |
public String | toString() Returns a string representation of the FTPFile information. |