java.lang.Object | +--org.apache.commons.net.ftp.FTPFileAll Implemented Interfaces:
FTPFileListParser
DefaultFTPFileListParser
FTPClient.listFiles
static int | A constant indicating an FTPFile is a directory. |
static int | A constant indicating file execute permission or directory listing permission. |
static int | A constant indicating an FTPFile is a file. |
static int | A constant indicating group access permissions. |
static int | A constant indicating file/directory read permission. |
static int | A constant indicating an FTPFile is a symbolic link. |
static int | A constant indicating an FTPFile is of unknown type. |
static int | A constant indicating user access permissions. |
static int | A constant indicating world access permissions. |
static int | A constant indicating file/directory write permission. |
FTPFile() Creates an empty FTPFile. |
String | getGroup() Returns the name of the group owning the file. |
int | Return the number of hard links to this file. |
String | getLink() If the FTPFile is a symbolic link, this method returns the name of the file being pointed to by the symbolic link. |
String | getName() Return the name of the file. |
String | Get the original FTP server raw listing used to initialize the FTPFile. |
long | getSize() Return the file size in bytes. |
Calendar | Returns the file timestamp. |
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. |
String | getUser() Returns the name of the user owning the file. |
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. |
boolean | Determine if the file is a directory. |
boolean | isFile() Determine if the file is a regular file. |
boolean | Determine if the file is a symbolic link. |
boolean | Determine if the type of the file is unknown. |
void | setGroup(String group) Set the name of the group owning the file. |
void | setHardLinkCount(int links) Set the number of hard links to this file. |
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. |
void | setName(String name) Set the name of the file. |
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. |
void | setRawListing(String rawListing) Set the original FTP server raw listing from which the FTPFile was created. |
void | setSize(long size) Set the file size in bytes. |
void | setTimestamp(Calendar date) Set the file timestamp. |
void | setType(int type) Set the type of the file (DIRECTORY_TYPE, FILE_TYPE, etc.). |
void | setUser(String user) Set the name of the user owning the file. |
String | toString() Returns a string representation of the FTPFile information. |
public static final int DIRECTORY_TYPE
public static final int EXECUTE_PERMISSION
public static final int FILE_TYPE
public static final int GROUP_ACCESS
public static final int READ_PERMISSION
public static final int SYMBOLIC_LINK_TYPE
public static final int UNKNOWN_TYPE
public static final int USER_ACCESS
public static final int WORLD_ACCESS
public static final int WRITE_PERMISSION
public FTPFile()
public String getGroup()
public int getHardLinkCount()
public String getLink()
public String getName()
public String getRawListing()
public long getSize()
public Calendar getTimestamp()
public int getType()
_TYPE constants),
e.g., if it is a directory, a regular file, or a symbolic link.
public String getUser()
public boolean hasPermission(int access, int permission)
_ACCESS
constants) has the given access permission (one of the
_PERMISSION constants) to the file.
public boolean isDirectory()
public boolean isFile()
public boolean isSymbolicLink()
public boolean isUnknown()
public void setGroup(String group)
public void setHardLinkCount(int links)
public void setLink(String link)
public void setName(String name)
public void setPermission(int access, int permission, boolean value)
_ACCESS
constants) has the given access permission (one of the
_PERMISSION constants) to the file.
public void setRawListing(String rawListing)
public void setSize(long size)
public void setTimestamp(Calendar date)
public void setType(int type)
DIRECTORY_TYPE,
FILE_TYPE, etc.).
public void setUser(String user)
public String toString()