public interface

LocalDestFile

net.schmizz.sshj.xfer.LocalDestFile
Known Indirect Subclasses

Summary

Public Methods
abstract LocalDestFile getChild(String name)
abstract OutputStream getOutputStream()
abstract LocalDestFile getTargetDirectory(String dirname)
Allows caller to express intent that caller expects to write to directory with dirname.
abstract LocalDestFile getTargetFile(String filename)
Allows caller to express intent that caller expects to write to file with filename.
abstract void setLastAccessedTime(long t)
Set the last access time for the underlying file.
abstract void setLastModifiedTime(long t)
Set the last modified time for the underlying file.
abstract void setPermissions(int perms)
Set the permissions for the underlying file.

Public Methods

public abstract LocalDestFile getChild (String name)

Parameters
name
Returns
  • A child file/directory of this directory with given name.

public abstract OutputStream getOutputStream ()

Throws
IOException

public abstract 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 abstract LocalDestFile 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 abstract void setLastAccessedTime (long t)

Set the last access time for the underlying file.

Parameters
t Time in seconds since Unix epoch
Throws
IOException

public abstract void setLastModifiedTime (long t)

Set the last modified time for the underlying file.

Parameters
t Time in seconds since Unix epoch
Throws
IOException

public abstract void setPermissions (int perms)

Set the permissions for the underlying file.

Parameters
perms Permissions e.g. 0644
Throws
IOException