static class AbstractSession.UploadSourceWrapper extends Object implements net.schmizz.sshj.xfer.LocalSourceFile
Modifier and Type | Field and Description |
---|---|
private FileMetaData |
metadata |
private FilePermission |
permission |
private UploadSource |
source |
Constructor and Description |
---|
UploadSourceWrapper(UploadSource source,
FilePermission permission) |
Modifier and Type | Method and Description |
---|---|
Iterable<? extends net.schmizz.sshj.xfer.LocalSourceFile> |
getChildren(net.schmizz.sshj.xfer.LocalFileFilter filter)
No children.
|
InputStream |
getInputStream() |
long |
getLastAccessTime() |
long |
getLastModifiedTime() |
long |
getLength() |
String |
getName() |
int |
getPermissions() |
boolean |
isDirectory() |
boolean |
isFile()
We only support files.
|
boolean |
providesAtimeMtime() |
private final UploadSource source
private final FileMetaData metadata
private final FilePermission permission
UploadSourceWrapper(UploadSource source, FilePermission permission)
public String getName()
getName
in interface net.schmizz.sshj.xfer.LocalSourceFile
public long getLength()
getLength
in interface net.schmizz.sshj.xfer.LocalSourceFile
public InputStream getInputStream() throws IOException
getInputStream
in interface net.schmizz.sshj.xfer.LocalSourceFile
IOException
public int getPermissions()
getPermissions
in interface net.schmizz.sshj.xfer.LocalSourceFile
public boolean isFile()
isFile
in interface net.schmizz.sshj.xfer.LocalSourceFile
public boolean isDirectory()
isDirectory
in interface net.schmizz.sshj.xfer.LocalSourceFile
public Iterable<? extends net.schmizz.sshj.xfer.LocalSourceFile> getChildren(net.schmizz.sshj.xfer.LocalFileFilter filter) throws IOException
getChildren
in interface net.schmizz.sshj.xfer.LocalSourceFile
IOException
public boolean providesAtimeMtime()
providesAtimeMtime
in interface net.schmizz.sshj.xfer.LocalSourceFile
public long getLastAccessTime() throws IOException
getLastAccessTime
in interface net.schmizz.sshj.xfer.LocalSourceFile
IOException
public long getLastModifiedTime() throws IOException
getLastModifiedTime
in interface net.schmizz.sshj.xfer.LocalSourceFile
IOException