ScpSend.this

this(SshChannel channel, ScpSendOptions options, ScpDataSource source)

Constructs a send operation on an accepted exec channel running the remote sink.

Parameters

channelChannel with the remote scp -t active; must outlive the operation and is never closed by it.
optionsSend parameters; sourceName must be a safe single base name.
sourceFile data source asked for at most ScpLimits.bufferMax bytes at a time.

Throws

ScpException when options.sourceName is not a

safe base name (see isSafeLocalBaseName) or source is null.