Class SftpFileInfo
java.lang.Object
org.springframework.integration.file.remote.AbstractFileInfo<org.apache.sshd.sftp.client.SftpClient.DirEntry>
org.springframework.integration.sftp.session.SftpFileInfo
- All Implemented Interfaces:
- Comparable<FileInfo<org.apache.sshd.sftp.client.SftpClient.DirEntry>>,- FileInfo<org.apache.sshd.sftp.client.SftpClient.DirEntry>
A 
FileInfo implementation for SFTP.- Since:
- 2.1
- Author:
- Gary Russell, Artem Bilan
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.springframework.integration.file.remote.AbstractFileInfocompareTo, getRemoteDirectory, setRemoteDirectory, toJson, toString
- 
Constructor Details- 
SftpFileInfopublic SftpFileInfo(org.apache.sshd.sftp.client.SftpClient.DirEntry lsEntry) 
 
- 
- 
Method Details- 
isDirectorypublic boolean isDirectory()- Returns:
- true if the remote file is a directory
- See Also:
- 
- SftpClient.Attributes.isDirectory()
 
 
- 
isLinkpublic boolean isLink()- Returns:
- true if the remote file is a link
- See Also:
- 
- SftpClient.Attributes.isSymbolicLink()
 
 
- 
getSizepublic long getSize()- Returns:
- the size of the remote file
- See Also:
- 
- SftpClient.Attributes.getSize()
 
 
- 
getModifiedpublic long getModified()- Returns:
- the modified time of the remote file
- See Also:
- 
- SftpClient.Attributes.getModifyTime()
 
 
- 
getFilename- Returns:
- the name of the remote file
- See Also:
- 
- SftpClient.DirEntry.getFilename()
 
 
- 
getPermissions- Returns:
- a string representing the permissions of the remote file (e.g. -rw-r--r--).
 
- 
getFileInfopublic org.apache.sshd.sftp.client.SftpClient.DirEntry getFileInfo()- Returns:
- the actual implementation from the underlying library, more sophisticated access is needed.
 
 
-