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.Loggerlog
-
Constructor Summary
Constructors Constructor Description InMemorySourceFile()
-
Method Summary
Modifier and Type Method Description java.lang.Iterable<? extends LocalSourceFile>getChildren(LocalFileFilter filter)longgetLastAccessTime()Returns last access time for the underlying file.longgetLastModifiedTime()Returns last access time for the underlying file.intgetPermissions()Returns the permissions for the underlying filebooleanisDirectory()booleanisFile()booleanprovidesAtimeMtime()-
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:
isFilein interfaceLocalSourceFile
-
isDirectory
public boolean isDirectory()
- Specified by:
isDirectoryin interfaceLocalSourceFile
-
getPermissions
public int getPermissions() throws java.io.IOExceptionDescription copied from interface:LocalSourceFileReturns the permissions for the underlying file- Specified by:
getPermissionsin interfaceLocalSourceFile- Returns:
- permissions e.g. 0644
- Throws:
java.io.IOException
-
providesAtimeMtime
public boolean providesAtimeMtime()
- Specified by:
providesAtimeMtimein interfaceLocalSourceFile
-
getLastAccessTime
public long getLastAccessTime() throws java.io.IOExceptionDescription copied from interface:LocalSourceFileReturns last access time for the underlying file.- Specified by:
getLastAccessTimein interfaceLocalSourceFile- Returns:
- time in seconds since Unix epoch
- Throws:
java.io.IOException
-
getLastModifiedTime
public long getLastModifiedTime() throws java.io.IOExceptionDescription copied from interface:LocalSourceFileReturns last access time for the underlying file.- Specified by:
getLastModifiedTimein 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:
getChildrenin interfaceLocalSourceFile- Throws:
java.io.IOException
-
-