public abstract class

InMemoryDestFile

extends Object
implements LocalDestFile
java.lang.Object
   ↳ net.schmizz.sshj.xfer.InMemoryDestFile

Summary

Fields
protected final Logger log
Public Constructors
InMemoryDestFile()
Public Methods
LocalDestFile getChild(String name)
LocalDestFile getTargetDirectory(String dirname)
Allows caller to express intent that caller expects to write to directory with dirname.
InMemoryDestFile getTargetFile(String filename)
Allows caller to express intent that caller expects to write to file with filename.
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface net.schmizz.sshj.xfer.LocalDestFile

Fields

protected final Logger log

Public Constructors

public InMemoryDestFile ()

Public Methods

public LocalDestFile getChild (String name)

Parameters
name

public LocalDestFile getTargetDirectory (String dirname)

Allows caller to express intent that caller expects to write to directory with dirname. Based on this information, an implementation may return an alternate directory to write to, which should be respected by the caller.

Parameters
dirname
Throws
IOException

public InMemoryDestFile getTargetFile (String filename)

Allows caller to express intent that caller expects to write to file with filename. Based on this information, an implementation may return an alternate file to write to, which should be respected by the caller.

Parameters
filename
Throws
IOException

public void setLastAccessedTime (long t)

Set the last access time for the underlying file.

Parameters
t Time in seconds since Unix epoch
Throws
IOException

public void setLastModifiedTime (long t)

Set the last modified time for the underlying file.

Parameters
t Time in seconds since Unix epoch
Throws
IOException

public void setPermissions (int perms)

Set the permissions for the underlying file.

Parameters
perms Permissions e.g. 0644
Throws
IOException