Package net.schmizz.sshj.xfer
Class InMemorySourceFile
java.lang.Object
net.schmizz.sshj.xfer.InMemorySourceFile
- All Implemented Interfaces:
LocalSourceFile
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIterable<? extends LocalSourceFile> getChildren(LocalFileFilter filter) longReturns last access time for the underlying file.longReturns last access time for the underlying file.intReturns the permissions for the underlying filebooleanbooleanisFile()booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.schmizz.sshj.xfer.LocalSourceFile
getInputStream, getLength, getName
-
Field Details
-
log
protected final org.slf4j.Logger log
-
-
Constructor Details
-
InMemorySourceFile
public InMemorySourceFile()
-
-
Method Details
-
isFile
public boolean isFile()- Specified by:
isFilein interfaceLocalSourceFile
-
isDirectory
public boolean isDirectory()- Specified by:
isDirectoryin interfaceLocalSourceFile
-
getPermissions
Description copied from interface:LocalSourceFileReturns the permissions for the underlying file- Specified by:
getPermissionsin interfaceLocalSourceFile- Returns:
- permissions e.g. 0644
- Throws:
IOException
-
providesAtimeMtime
public boolean providesAtimeMtime()- Specified by:
providesAtimeMtimein interfaceLocalSourceFile
-
getLastAccessTime
Description copied from interface:LocalSourceFileReturns last access time for the underlying file.- Specified by:
getLastAccessTimein interfaceLocalSourceFile- Returns:
- time in seconds since Unix epoch
- Throws:
IOException
-
getLastModifiedTime
Description copied from interface:LocalSourceFileReturns last access time for the underlying file.- Specified by:
getLastModifiedTimein interfaceLocalSourceFile- Returns:
- time in seconds since Unix epoch
- Throws:
IOException
-
getChildren
- Specified by:
getChildrenin interfaceLocalSourceFile- Throws:
IOException
-