org.springframework.integration.file.remote
Interface FileInfo<F>
- All Known Implementing Classes:
- AbstractFileInfo, FtpFileInfo, SftpFileInfo
public interface FileInfo<F>
Represents a remote file info - an abstraction over the underlying implementation.
- Since:
- 2.1
- Author:
- Gary Russell
isDirectory
boolean isDirectory()
- Returns:
- true if the remote file is a directory
isLink
boolean isLink()
- Returns:
- true if the remote file is a link
getSize
long getSize()
- Returns:
- the size of the remote file
getModified
long getModified()
- Returns:
- the modified time of the remote file
getFilename
java.lang.String getFilename()
- Returns:
- the name of the remote file
getRemoteDirectory
java.lang.String getRemoteDirectory()
- Returns:
- the remote directory in which the file resides
getPermissions
java.lang.String getPermissions()
- Returns:
- a string representing the permissions of the remote
file (e.g. -rw-r--r--).
getFileInfo
F getFileInfo()
- Returns:
- the actual implementation from the underlying
library, more sophisticated access is needed.