net.schmizz.sshj.xfer
Class InMemorySourceFile
java.lang.Object
net.schmizz.sshj.xfer.InMemorySourceFile
- All Implemented Interfaces:
- LocalSourceFile
public abstract class InMemorySourceFile
- extends Object
- implements LocalSourceFile
Field Summary |
protected org.slf4j.Logger |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.slf4j.Logger log
InMemorySourceFile
public InMemorySourceFile()
isFile
public boolean isFile()
- Specified by:
isFile
in interface LocalSourceFile
isDirectory
public boolean isDirectory()
- Specified by:
isDirectory
in interface LocalSourceFile
getPermissions
public int getPermissions()
throws IOException
- Description copied from interface:
LocalSourceFile
- Returns the permissions for the underlying file
- Specified by:
getPermissions
in interface LocalSourceFile
- Returns:
- permissions e.g. 0644
- Throws:
IOException
providesAtimeMtime
public boolean providesAtimeMtime()
- Specified by:
providesAtimeMtime
in interface LocalSourceFile
getLastAccessTime
public long getLastAccessTime()
throws IOException
- Description copied from interface:
LocalSourceFile
- Returns last access time for the underlying file.
- Specified by:
getLastAccessTime
in interface LocalSourceFile
- Returns:
- time in seconds since Unix epoch
- Throws:
IOException
getLastModifiedTime
public long getLastModifiedTime()
throws IOException
- Description copied from interface:
LocalSourceFile
- Returns last access time for the underlying file.
- Specified by:
getLastModifiedTime
in interface LocalSourceFile
- Returns:
- time in seconds since Unix epoch
- Throws:
IOException
getChildren
public Iterable<? extends LocalSourceFile> getChildren(LocalFileFilter filter)
throws IOException
- Specified by:
getChildren
in interface LocalSourceFile
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.