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 longgetFileLength()The file sizeStringgetFilename()The file namelonggetLastModified()The file modification timestamp (in millis)StringgetLongname()The long file namecom.jcraft.jsch.ChannelSftp.LsEntrygetRemoteFile()Gets the remote file object.booleanisDirectory()Whether its a directory
-
-
-
Method Detail
-
getRemoteFile
public com.jcraft.jsch.ChannelSftp.LsEntry getRemoteFile()
Description copied from interface:SftpRemoteFileGets the remote file object.- Specified by:
getRemoteFilein interfaceSftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
-
getFilename
public String getFilename()
Description copied from interface:SftpRemoteFileThe file name- Specified by:
getFilenamein interfaceSftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
-
getLongname
public String getLongname()
Description copied from interface:SftpRemoteFileThe long file name- Specified by:
getLongnamein interfaceSftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
-
isDirectory
public boolean isDirectory()
Description copied from interface:SftpRemoteFileWhether its a directory- Specified by:
isDirectoryin interfaceSftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
-
getFileLength
public long getFileLength()
Description copied from interface:SftpRemoteFileThe file size- Specified by:
getFileLengthin interfaceSftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
-
getLastModified
public long getLastModified()
Description copied from interface:SftpRemoteFileThe file modification timestamp (in millis)- Specified by:
getLastModifiedin interfaceSftpRemoteFile<com.jcraft.jsch.ChannelSftp.LsEntry>
-
-