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()
SftpRemoteFile
getRemoteFile
in interface SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
public String getFilename()
SftpRemoteFile
getFilename
in interface SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
public String getLongname()
SftpRemoteFile
getLongname
in interface SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
public boolean isDirectory()
SftpRemoteFile
isDirectory
in interface SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
public long getFileLength()
SftpRemoteFile
getFileLength
in interface SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
public long getLastModified()
SftpRemoteFile
getLastModified
in interface SftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
Apache Camel