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) long
Returns last access time for the underlying file.long
Returns last access time for the underlying file.int
Returns the permissions for the underlying fileboolean
boolean
isFile()
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
isFile
in interfaceLocalSourceFile
-
isDirectory
public boolean isDirectory()- Specified by:
isDirectory
in interfaceLocalSourceFile
-
getPermissions
Description copied from interface:LocalSourceFile
Returns the permissions for the underlying file- Specified by:
getPermissions
in interfaceLocalSourceFile
- Returns:
- permissions e.g. 0644
- Throws:
IOException
-
providesAtimeMtime
public boolean providesAtimeMtime()- Specified by:
providesAtimeMtime
in interfaceLocalSourceFile
-
getLastAccessTime
Description copied from interface:LocalSourceFile
Returns last access time for the underlying file.- Specified by:
getLastAccessTime
in interfaceLocalSourceFile
- Returns:
- time in seconds since Unix epoch
- Throws:
IOException
-
getLastModifiedTime
Description copied from interface:LocalSourceFile
Returns last access time for the underlying file.- Specified by:
getLastModifiedTime
in interfaceLocalSourceFile
- Returns:
- time in seconds since Unix epoch
- Throws:
IOException
-
getChildren
- Specified by:
getChildren
in interfaceLocalSourceFile
- Throws:
IOException
-