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 Summary
Constructors Constructor Description SftpRemoteFileJCraft(com.jcraft.jsch.ChannelSftp.LsEntry entry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getFileLength()
The file sizeString
getFilename()
The file namelong
getLastModified()
The file modification timestamp (in millis)String
getLongname()
The long file namecom.jcraft.jsch.ChannelSftp.LsEntry
getRemoteFile()
Gets the remote file object.boolean
isDirectory()
Whether its a directory
-
-
-
Method Detail
-
getRemoteFile
public com.jcraft.jsch.ChannelSftp.LsEntry getRemoteFile()
Description copied from interface:SftpRemoteFile
Gets the remote file object.- Specified by:
getRemoteFile
in interfaceSftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
-
getFilename
public String getFilename()
Description copied from interface:SftpRemoteFile
The file name- Specified by:
getFilename
in interfaceSftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
-
getLongname
public String getLongname()
Description copied from interface:SftpRemoteFile
The long file name- Specified by:
getLongname
in interfaceSftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
-
isDirectory
public boolean isDirectory()
Description copied from interface:SftpRemoteFile
Whether its a directory- Specified by:
isDirectory
in interfaceSftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
-
getFileLength
public long getFileLength()
Description copied from interface:SftpRemoteFile
The file size- Specified by:
getFileLength
in interfaceSftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
-
getLastModified
public long getLastModified()
Description copied from interface:SftpRemoteFile
The file modification timestamp (in millis)- Specified by:
getLastModified
in interfaceSftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
-
-