Java org.apache.commons.net.ftp FTPFile fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.net.ftp FTPFile fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.net.ftp FTPFile.

The text is from its open source code.

Subclass

org.apache.commons.net.ftp.FTPFile has subclasses.
Click this link to see all its subclasses.

Field

intFILE_TYPE
A constant indicating an FTPFile is a file.
intDIRECTORY_TYPE
A constant indicating an FTPFile is a directory.
intSYMBOLIC_LINK_TYPE
A constant indicating an FTPFile is a symbolic link.
intUNKNOWN_TYPE
A constant indicating an FTPFile is of unknown type.
intUSER_ACCESS
A constant indicating user access permissions.
intGROUP_ACCESS
A constant indicating group access permissions.
intWORLD_ACCESS
A constant indicating world access permissions.
intREAD_PERMISSION
A constant indicating file/directory read permission.
intWRITE_PERMISSION
A constant indicating file/directory write permission.
intEXECUTE_PERMISSION
A constant indicating file execute permission or directory listing permission.

Constructor

FTPFile()
Creates an empty FTPFile.

Method

StringgetGroup()
Returns the name of the group owning the file.
intgetHardLinkCount()
Return the number of hard links to this file.
StringgetLink()
If the FTPFile is a symbolic link, this method returns the name of the file being pointed to by the symbolic link.
StringgetName()
Return the name of the file.
StringgetRawListing()
Get the original FTP server raw listing used to initialize the FTPFile.
longgetSize()
Return the file size in bytes.
CalendargetTimestamp()
Returns the file timestamp.
intgetType()
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.
StringgetUser()
Returns the name of the user owning the file.
booleanhasPermission(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.
booleanisDirectory()
Determine if the file is a directory.
booleanisFile()
Determine if the file is a regular file.
booleanisSymbolicLink()
Determine if the file is a symbolic link.
booleanisUnknown()
Determine if the type of the file is unknown.
voidsetGroup(String group)
Set the name of the group owning the file.
voidsetHardLinkCount(int links)
Set the number of hard links to this file.
voidsetLink(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.
voidsetName(String name)
Set the name of the file.
voidsetPermission(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.
voidsetRawListing(String rawListing)
Set the original FTP server raw listing from which the FTPFile was created.
voidsetSize(long size)
Set the file size in bytes.
voidsetTimestamp(Calendar date)
Set the file timestamp.
voidsetType(int type)
Set the type of the file (DIRECTORY_TYPE, FILE_TYPE, etc.).
voidsetUser(String user)
Set the name of the user owning the file.
StringtoFormattedString()
Returns a string representation of the FTPFile information.
StringtoString()
Returns a string representation of the FTPFile information.