Class SCPUploadClient
java.lang.Object
net.schmizz.sshj.xfer.scp.SCPUploadClient
Support for uploading files over a connected link using SCP.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected final net.schmizz.sshj.xfer.scp.SCPEngine -
Method Summary
Modifier and TypeMethodDescriptionintcopy(LocalSourceFile sourceFile, String remotePath) Upload a local file fromlocalFiletotargetPathon the remote host.intcopy(LocalSourceFile sourceFile, String remotePath, ScpCommandLine.EscapeMode escapeMode) intcopy(LocalSourceFile sourceFile, String remotePath, ScpCommandLine.EscapeMode escapeMode, boolean preserveTimes) intcopy(LocalSourceFile sourceFile, String remotePath, ScpCommandLine.EscapeMode escapeMode, ScpCommandLine commandLine) voidsetUploadFilter(LocalFileFilter uploadFilter)
-
Field Details
-
engine
protected final net.schmizz.sshj.xfer.scp.SCPEngine engine -
bandwidthLimit
protected int bandwidthLimit
-
-
Method Details
-
copy
Upload a local file fromlocalFiletotargetPathon the remote host.- Throws:
IOException
-
copy
public int copy(LocalSourceFile sourceFile, String remotePath, ScpCommandLine.EscapeMode escapeMode) throws IOException - Throws:
IOException
-
copy
public int copy(LocalSourceFile sourceFile, String remotePath, ScpCommandLine.EscapeMode escapeMode, boolean preserveTimes) throws IOException - Throws:
IOException
-
copy
public int copy(LocalSourceFile sourceFile, String remotePath, ScpCommandLine.EscapeMode escapeMode, ScpCommandLine commandLine) throws IOException - Throws:
IOException
-
setUploadFilter
-