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.InputStreamgetInputStream()longgetLastAccessTime()Returns last access time for the underlying file.longgetLastModifiedTime()Returns last access time for the underlying file.longgetLength()java.lang.StringgetName()intgetPermissions()Returns the permissions for the underlying filebooleanisDirectory()booleanisFile()booleanprovidesAtimeMtime()
-
-
-
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.IOExceptionReturns 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.IOExceptionReturns last access time for the underlying file.- Returns:
- time in seconds since Unix epoch
- Throws:
java.io.IOException
-
getLastModifiedTime
long getLastModifiedTime() throws java.io.IOExceptionReturns last access time for the underlying file.- Returns:
- time in seconds since Unix epoch
- Throws:
java.io.IOException
-
-