Class FtpFileInfo
java.lang.Object
org.springframework.integration.file.remote.AbstractFileInfo<org.apache.commons.net.ftp.FTPFile>
org.springframework.integration.ftp.session.FtpFileInfo
- All Implemented Interfaces:
- Comparable<FileInfo<org.apache.commons.net.ftp.FTPFile>>,- FileInfo<org.apache.commons.net.ftp.FTPFile>
A 
FileInfo implementation for
 FTP/FTPS.- Since:
- 2.1
- Author:
- Gary Russell
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.springframework.integration.file.remote.AbstractFileInfocompareTo, getRemoteDirectory, setRemoteDirectory, toJson, toString
- 
Constructor Details- 
FtpFileInfopublic FtpFileInfo(org.apache.commons.net.ftp.FTPFile ftpFile) 
 
- 
- 
Method Details- 
isDirectorypublic boolean isDirectory()- Returns:
- true if the remote file is a directory
 
- 
isLinkpublic boolean isLink()- Returns:
- true if the remote file is a link
 
- 
getSizepublic long getSize()- Returns:
- the size of the remote file
 
- 
getModifiedpublic long getModified()- Returns:
- the modified time of the remote file
 
- 
getFilename- Returns:
- the name of the remote file
 
- 
getPermissions- Returns:
- a string representing the permissions of the remote file (e.g. -rw-r--r--).
 
- 
getFileInfopublic org.apache.commons.net.ftp.FTPFile getFileInfo()- Returns:
- the actual implementation from the underlying library, more sophisticated access is needed.
 
 
-