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