Class SftpRemoteFileJCraft

  • All Implemented Interfaces:
    SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>

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

      • SftpRemoteFileJCraft

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

      • 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>
      • 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>