Class SftpFileInfo

java.lang.Object
org.springframework.integration.file.remote.AbstractFileInfo<com.jcraft.jsch.ChannelSftp.LsEntry>
org.springframework.integration.sftp.session.SftpFileInfo
All Implemented Interfaces:
java.lang.Comparable<org.springframework.integration.file.remote.FileInfo<com.jcraft.jsch.ChannelSftp.LsEntry>>, org.springframework.integration.file.remote.FileInfo<com.jcraft.jsch.ChannelSftp.LsEntry>

public class SftpFileInfo
extends org.springframework.integration.file.remote.AbstractFileInfo<com.jcraft.jsch.ChannelSftp.LsEntry>
A FileInfo implementation for SFTP.
Since:
2.1
  • Constructor Summary

    Constructors 
    Constructor Description
    SftpFileInfo​(com.jcraft.jsch.ChannelSftp.LsEntry lsEntry)  
  • Method Summary

    Modifier and Type Method Description
    com.jcraft.jsch.ChannelSftp.LsEntry getFileInfo()  
    java.lang.String getFilename()  
    long getModified()  
    java.lang.String getPermissions()  
    long getSize()  
    boolean isDirectory()  
    boolean isLink()  

    Methods inherited from class org.springframework.integration.file.remote.AbstractFileInfo

    compareTo, getRemoteDirectory, setRemoteDirectory, toJson, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SftpFileInfo

      public SftpFileInfo​(com.jcraft.jsch.ChannelSftp.LsEntry lsEntry)
  • Method Details

    • isDirectory

      public boolean isDirectory()
      See Also:
      SftpATTRS.isDir()
    • isLink

      public boolean isLink()
      See Also:
      SftpATTRS.isLink()
    • getSize

      public long getSize()
      See Also:
      SftpATTRS.getSize()
    • getModified

      public long getModified()
      See Also:
      SftpATTRS.getMTime()
    • getFilename

      public java.lang.String getFilename()
      See Also:
      ChannelSftp.LsEntry.getFilename()
    • getPermissions

      public java.lang.String getPermissions()
    • getFileInfo

      public com.jcraft.jsch.ChannelSftp.LsEntry getFileInfo()