public class DefaultScpClient extends AbstractScpClient
AbstractScpClient.ScpOperationExecutor<T>
ScpClient.Option
Modifier and Type | Field and Description |
---|---|
private ClientSession |
clientSession |
protected ScpTransferEventListener |
listener |
protected ScpFileOpener |
opener |
log
Constructor and Description |
---|
DefaultScpClient(ClientSession clientSession) |
DefaultScpClient(ClientSession clientSession,
ScpFileOpener fileOpener,
ScpTransferEventListener eventListener) |
Modifier and Type | Method and Description |
---|---|
protected void |
download(java.lang.String remote,
java.nio.file.FileSystem fs,
java.nio.file.Path local,
java.util.Collection<ScpClient.Option> options) |
void |
download(java.lang.String remote,
java.io.OutputStream local) |
ClientSession |
getClientSession() |
protected <T> void |
runUpload(java.lang.String remote,
java.util.Collection<ScpClient.Option> options,
java.util.Collection<T> local,
AbstractScpClient.ScpOperationExecutor<T> executor) |
void |
upload(java.io.InputStream local,
java.lang.String remote,
long size,
java.util.Collection<java.nio.file.attribute.PosixFilePermission> perms,
ScpTimestampCommandDetails time) |
addTargetIsDirectory, download, download, download, download, handleCommandExitStatus, handleCommandExitStatus, isOpen, openCommandChannel, upload, upload
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendCommandOption, createReceiveCommand, createSendCommand, download, download, download, download, downloadBytes, getSession, upload, upload, upload, upload, upload, upload, upload, upload
getSessionContext
protected final ScpFileOpener opener
protected final ScpTransferEventListener listener
private final ClientSession clientSession
public DefaultScpClient(ClientSession clientSession)
public DefaultScpClient(ClientSession clientSession, ScpFileOpener fileOpener, ScpTransferEventListener eventListener)
public ClientSession getClientSession()
ClientSession
usedpublic void download(java.lang.String remote, java.io.OutputStream local) throws java.io.IOException
java.io.IOException
protected void download(java.lang.String remote, java.nio.file.FileSystem fs, java.nio.file.Path local, java.util.Collection<ScpClient.Option> options) throws java.io.IOException
download
in class AbstractScpClient
java.io.IOException
public void upload(java.io.InputStream local, java.lang.String remote, long size, java.util.Collection<java.nio.file.attribute.PosixFilePermission> perms, ScpTimestampCommandDetails time) throws java.io.IOException
java.io.IOException
protected <T> void runUpload(java.lang.String remote, java.util.Collection<ScpClient.Option> options, java.util.Collection<T> local, AbstractScpClient.ScpOperationExecutor<T> executor) throws java.io.IOException
runUpload
in class AbstractScpClient
java.io.IOException