Package net.schmizz.sshj.xfer
Interface LocalSourceFile
- All Known Implementing Classes:
FileSystemFile
,InMemorySourceFile
public interface LocalSourceFile
-
Method Summary
Modifier and TypeMethodDescriptionIterable
<? extends LocalSourceFile> getChildren
(LocalFileFilter filter) long
Returns last access time for the underlying file.long
Returns last access time for the underlying file.long
getName()
int
Returns the permissions for the underlying fileboolean
boolean
isFile()
boolean
-
Method Details
-
getName
String getName() -
getLength
long getLength() -
getInputStream
- Throws:
IOException
-
getPermissions
Returns the permissions for the underlying file- Returns:
- permissions e.g. 0644
- Throws:
IOException
-
isFile
boolean isFile() -
isDirectory
boolean isDirectory() -
getChildren
- Throws:
IOException
-
providesAtimeMtime
boolean providesAtimeMtime() -
getLastAccessTime
Returns last access time for the underlying file.- Returns:
- time in seconds since Unix epoch
- Throws:
IOException
-
getLastModifiedTime
Returns last access time for the underlying file.- Returns:
- time in seconds since Unix epoch
- Throws:
IOException
-