Package net.schmizz.sshj.xfer.scp
Class SCPUploadClient
- java.lang.Object
-
- net.schmizz.sshj.xfer.scp.SCPUploadClient
-
public class SCPUploadClient extends java.lang.ObjectSupport for uploading files over a connected link using SCP.
-
-
Field Summary
Fields Modifier and Type Field Description protected intbandwidthLimitprotected net.schmizz.sshj.xfer.scp.SCPEngineengine
-
Method Summary
Modifier and Type Method Description intcopy(LocalSourceFile sourceFile, java.lang.String remotePath)Upload a local file fromlocalFiletotargetPathon the remote host.intcopy(LocalSourceFile sourceFile, java.lang.String remotePath, ScpCommandLine.EscapeMode escapeMode)intcopy(LocalSourceFile sourceFile, java.lang.String remotePath, ScpCommandLine.EscapeMode escapeMode, boolean preserveTimes)voidsetUploadFilter(LocalFileFilter uploadFilter)
-
-
-
Method Detail
-
copy
public int copy(LocalSourceFile sourceFile, java.lang.String remotePath) throws java.io.IOException
Upload a local file fromlocalFiletotargetPathon the remote host.- Throws:
java.io.IOException
-
copy
public int copy(LocalSourceFile sourceFile, java.lang.String remotePath, ScpCommandLine.EscapeMode escapeMode) throws java.io.IOException
- Throws:
java.io.IOException
-
copy
public int copy(LocalSourceFile sourceFile, java.lang.String remotePath, ScpCommandLine.EscapeMode escapeMode, boolean preserveTimes) throws java.io.IOException
- Throws:
java.io.IOException
-
setUploadFilter
public void setUploadFilter(LocalFileFilter uploadFilter)
-
-