public class SftpRemoteFileJCraft extends Object implements SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
| Constructor and Description |
|---|
SftpRemoteFileJCraft(com.jcraft.jsch.ChannelSftp.LsEntry entry) |
| Modifier and Type | Method and Description |
|---|---|
long |
getFileLength()
The file size
|
String |
getFilename()
The file name
|
long |
getLastModified()
The file modification timestamp (in millis)
|
String |
getLongname()
The long file name
|
com.jcraft.jsch.ChannelSftp.LsEntry |
getRemoteFile()
Gets the remote file object.
|
boolean |
isDirectory()
Whether its a directory
|
public SftpRemoteFileJCraft(com.jcraft.jsch.ChannelSftp.LsEntry entry)
public com.jcraft.jsch.ChannelSftp.LsEntry getRemoteFile()
SftpRemoteFilegetRemoteFile in interface SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>public String getFilename()
SftpRemoteFilegetFilename in interface SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>public String getLongname()
SftpRemoteFilegetLongname in interface SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>public boolean isDirectory()
SftpRemoteFileisDirectory in interface SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>public long getFileLength()
SftpRemoteFilegetFileLength in interface SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>public long getLastModified()
SftpRemoteFilegetLastModified in interface SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>Apache Camel