Package net.schmizz.sshj.xfer
Class InMemorySourceFile
- java.lang.Object
-
- net.schmizz.sshj.xfer.InMemorySourceFile
-
- All Implemented Interfaces:
LocalSourceFile
public abstract class InMemorySourceFile extends java.lang.Object implements LocalSourceFile
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
log
-
Constructor Summary
Constructors Constructor Description InMemorySourceFile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Iterable<? extends LocalSourceFile>
getChildren(LocalFileFilter filter)
long
getLastAccessTime()
Returns last access time for the underlying file.long
getLastModifiedTime()
Returns last access time for the underlying file.int
getPermissions()
Returns the permissions for the underlying fileboolean
isDirectory()
boolean
isFile()
boolean
providesAtimeMtime()
-
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
-
-
-
-
Method Detail
-
isFile
public boolean isFile()
- Specified by:
isFile
in interfaceLocalSourceFile
-
isDirectory
public boolean isDirectory()
- Specified by:
isDirectory
in interfaceLocalSourceFile
-
getPermissions
public int getPermissions() throws java.io.IOException
Description copied from interface:LocalSourceFile
Returns the permissions for the underlying file- Specified by:
getPermissions
in interfaceLocalSourceFile
- Returns:
- permissions e.g. 0644
- Throws:
java.io.IOException
-
providesAtimeMtime
public boolean providesAtimeMtime()
- Specified by:
providesAtimeMtime
in interfaceLocalSourceFile
-
getLastAccessTime
public long getLastAccessTime() throws java.io.IOException
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:
java.io.IOException
-
getLastModifiedTime
public long getLastModifiedTime() throws java.io.IOException
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:
java.io.IOException
-
getChildren
public java.lang.Iterable<? extends LocalSourceFile> getChildren(LocalFileFilter filter) throws java.io.IOException
- Specified by:
getChildren
in interfaceLocalSourceFile
- Throws:
java.io.IOException
-
-