public class SCPUploadClient
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
bandwidthLimit |
protected net.schmizz.sshj.xfer.scp.SCPEngine |
engine |
| Modifier and Type | Method and Description |
|---|---|
int |
copy(LocalSourceFile sourceFile,
java.lang.String remotePath)
Upload a local file from
localFile to targetPath on the remote host. |
int |
copy(LocalSourceFile sourceFile,
java.lang.String remotePath,
ScpCommandLine.EscapeMode escapeMode) |
void |
setUploadFilter(LocalFileFilter uploadFilter) |
protected final net.schmizz.sshj.xfer.scp.SCPEngine engine
protected int bandwidthLimit
public int copy(LocalSourceFile sourceFile, java.lang.String remotePath) throws java.io.IOException
localFile to targetPath on the remote host.java.io.IOExceptionpublic int copy(LocalSourceFile sourceFile, java.lang.String remotePath, ScpCommandLine.EscapeMode escapeMode) throws java.io.IOException
java.io.IOExceptionpublic void setUploadFilter(LocalFileFilter uploadFilter)