Class SftpRemoteFileJCraft

java.lang.Object
org.apache.camel.component.file.remote.SftpRemoteFileJCraft
All Implemented Interfaces:
SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>

public class SftpRemoteFileJCraft extends Object implements SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
  • Constructor Details

    • SftpRemoteFileJCraft

      public SftpRemoteFileJCraft(com.jcraft.jsch.ChannelSftp.LsEntry entry)
  • Method Details

    • getRemoteFile

      public com.jcraft.jsch.ChannelSftp.LsEntry getRemoteFile()
      Description copied from interface: SftpRemoteFile
      Gets the remote file object.
      Specified by:
      getRemoteFile in interface SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
    • getFilename

      public String getFilename()
      Description copied from interface: SftpRemoteFile
      The file name
      Specified by:
      getFilename in interface SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
    • getLongname

      public String getLongname()
      Description copied from interface: SftpRemoteFile
      The long file name
      Specified by:
      getLongname in interface SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
    • isDirectory

      public boolean isDirectory()
      Description copied from interface: SftpRemoteFile
      Whether its a directory
      Specified by:
      isDirectory in interface SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
    • getFileLength

      public long getFileLength()
      Description copied from interface: SftpRemoteFile
      The file size
      Specified by:
      getFileLength in interface SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
    • getLastModified

      public long getLastModified()
      Description copied from interface: SftpRemoteFile
      The file modification timestamp (in millis)
      Specified by:
      getLastModified in interface SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>