public final class

SCPUploadClient

extends Object
java.lang.Object
   ↳ net.schmizz.sshj.xfer.scp.SCPUploadClient

Class Overview

Support for uploading files over a connected link using SCP.

Summary

Fields
private final SCPEngine engine
private LocalFileFilter uploadFilter
Public Methods
synchronized int copy(LocalSourceFile sourceFile, String remotePath)
Upload a local file from localFile to targetPath on the remote host.
void setUploadFilter(LocalFileFilter uploadFilter)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private final SCPEngine engine

private LocalFileFilter uploadFilter

Public Methods

public synchronized int copy (LocalSourceFile sourceFile, String remotePath)

Upload a local file from localFile to targetPath on the remote host.

Parameters
sourceFile
remotePath
Throws
IOException

public void setUploadFilter (LocalFileFilter uploadFilter)

Parameters
uploadFilter