|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.schmizz.sshj.xfer.FileSystemFile
public class FileSystemFile
Field Summary | |
---|---|
protected org.slf4j.Logger |
log
|
Constructor Summary | |
---|---|
FileSystemFile(File file)
|
|
FileSystemFile(String path)
|
Method Summary | |
---|---|
boolean |
equals(Object other)
|
FileSystemFile |
getChild(String name)
|
Iterable<FileSystemFile> |
getChildren(LocalFileFilter filter)
|
File |
getFile()
|
InputStream |
getInputStream()
|
long |
getLastAccessTime()
Returns last access time for the underlying file. |
long |
getLastModifiedTime()
Returns last access time for the underlying file. |
long |
getLength()
|
String |
getName()
|
OutputStream |
getOutputStream()
|
int |
getPermissions()
Returns the permissions for the underlying file |
FileSystemFile |
getTargetDirectory(String dirname)
Allows caller to express intent that caller expects to write to directory with dirname . |
FileSystemFile |
getTargetFile(String filename)
Allows caller to express intent that caller expects to write to file with filename . |
int |
hashCode()
|
boolean |
isDirectory()
|
boolean |
isFile()
|
boolean |
providesAtimeMtime()
|
void |
setLastAccessedTime(long t)
Set the last access time for the underlying file. |
void |
setLastModifiedTime(long t)
Set the last modified time for the underlying file. |
void |
setPermissions(int perms)
Set the permissions for the underlying file. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final org.slf4j.Logger log
Constructor Detail |
---|
public FileSystemFile(String path)
public FileSystemFile(File file)
Method Detail |
---|
public File getFile()
public String getName()
getName
in interface LocalSourceFile
public boolean isFile()
isFile
in interface LocalSourceFile
public boolean isDirectory()
isDirectory
in interface LocalSourceFile
public long getLength()
getLength
in interface LocalSourceFile
public InputStream getInputStream() throws IOException
getInputStream
in interface LocalSourceFile
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface LocalDestFile
IOException
public Iterable<FileSystemFile> getChildren(LocalFileFilter filter) throws IOException
getChildren
in interface LocalSourceFile
IOException
public boolean providesAtimeMtime()
providesAtimeMtime
in interface LocalSourceFile
public long getLastAccessTime() throws IOException
LocalSourceFile
getLastAccessTime
in interface LocalSourceFile
IOException
public long getLastModifiedTime() throws IOException
LocalSourceFile
getLastModifiedTime
in interface LocalSourceFile
IOException
public int getPermissions() throws IOException
LocalSourceFile
getPermissions
in interface LocalSourceFile
IOException
public void setLastAccessedTime(long t) throws IOException
LocalDestFile
setLastAccessedTime
in interface LocalDestFile
t
- time in seconds since Unix epoch
IOException
public void setLastModifiedTime(long t) throws IOException
LocalDestFile
setLastModifiedTime
in interface LocalDestFile
t
- time in seconds since Unix epoch
IOException
public void setPermissions(int perms) throws IOException
LocalDestFile
setPermissions
in interface LocalDestFile
perms
- permissions e.g. 0644
IOException
public FileSystemFile getChild(String name)
getChild
in interface LocalDestFile
name
.public FileSystemFile getTargetFile(String filename) throws IOException
LocalDestFile
filename
. Based on this
information, an implementation may return an alternate file to write to, which should be respected by the
caller.
getTargetFile
in interface LocalDestFile
IOException
public FileSystemFile getTargetDirectory(String dirname) throws IOException
LocalDestFile
dirname
. Based on this
information, an implementation may return an alternate directory to write to, which should be respected by the
caller.
getTargetDirectory
in interface LocalDestFile
IOException
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |