org.springframework.integration.ftp.session
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:
- java.lang.Comparable<FileInfo<org.apache.commons.net.ftp.FTPFile>>, FileInfo<org.apache.commons.net.ftp.FTPFile>
public class FtpFileInfo
- extends AbstractFileInfo<org.apache.commons.net.ftp.FTPFile>
A FileInfo
implementation for FTP/FTPS.
- Since:
- 2.1
- Author:
- Gary Russell
Constructor Summary |
FtpFileInfo(org.apache.commons.net.ftp.FTPFile ftpFile)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FtpFileInfo
public FtpFileInfo(org.apache.commons.net.ftp.FTPFile ftpFile)
isDirectory
public boolean isDirectory()
- Returns:
- true if the remote file is a directory
isLink
public boolean isLink()
- Returns:
- true if the remote file is a link
getSize
public long getSize()
- Returns:
- the size of the remote file
getModified
public long getModified()
- Returns:
- the modified time of the remote file
getFilename
public java.lang.String getFilename()
- Returns:
- the name of the remote file
getPermissions
public java.lang.String getPermissions()
- Returns:
- a string representing the permissions of the remote
file (e.g. -rw-r--r--).
getFileInfo
public org.apache.commons.net.ftp.FTPFile getFileInfo()
- Returns:
- the actual implementation from the underlying
library, more sophisticated access is needed.