|
||||||||||
| 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 LocalSourceFilepublic boolean isFile()
isFile in interface LocalSourceFilepublic boolean isDirectory()
isDirectory in interface LocalSourceFilepublic long getLength()
getLength in interface LocalSourceFile
public InputStream getInputStream()
throws IOException
getInputStream in interface LocalSourceFileIOException
public OutputStream getOutputStream()
throws IOException
getOutputStream in interface LocalDestFileIOException
public Iterable<FileSystemFile> getChildren(LocalFileFilter filter)
throws IOException
getChildren in interface LocalSourceFileIOExceptionpublic boolean providesAtimeMtime()
providesAtimeMtime in interface LocalSourceFile
public long getLastAccessTime()
throws IOException
LocalSourceFile
getLastAccessTime in interface LocalSourceFileIOException
public long getLastModifiedTime()
throws IOException
LocalSourceFile
getLastModifiedTime in interface LocalSourceFileIOException
public int getPermissions()
throws IOException
LocalSourceFile
getPermissions in interface LocalSourceFileIOException
public void setLastAccessedTime(long t)
throws IOException
LocalDestFile
setLastAccessedTime in interface LocalDestFilet - time in seconds since Unix epoch
IOException
public void setLastModifiedTime(long t)
throws IOException
LocalDestFile
setLastModifiedTime in interface LocalDestFilet - time in seconds since Unix epoch
IOException
public void setPermissions(int perms)
throws IOException
LocalDestFile
setPermissions in interface LocalDestFileperms - permissions e.g. 0644
IOExceptionpublic FileSystemFile getChild(String name)
getChild in interface LocalDestFilename.
public FileSystemFile getTargetFile(String filename)
throws IOException
LocalDestFilefilename. Based on this
information, an implementation may return an alternate file to write to, which should be respected by the
caller.
getTargetFile in interface LocalDestFileIOException
public FileSystemFile getTargetDirectory(String dirname)
throws IOException
LocalDestFiledirname. Based on this
information, an implementation may return an alternate directory to write to, which should be respected by the
caller.
getTargetDirectory in interface LocalDestFileIOExceptionpublic boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||