public class DefaultScpClient extends AbstractScpClient
AbstractScpClient.ScpOperationExecutor<T>
ScpClient.Option
log
DEFAULT_EXEC_CHANNEL_OPEN_TIMEOUT, SCP_EXEC_CHANNEL_OPEN_TIMEOUT
Constructor and Description |
---|
DefaultScpClient(ClientSession clientSession) |
DefaultScpClient(ClientSession clientSession,
ScpTransferEventListener eventListener) |
Modifier and Type | Method and Description |
---|---|
protected void |
download(String remote,
FileSystem fs,
Path local,
Collection<ScpClient.Option> options) |
void |
download(String remote,
OutputStream local) |
ClientSession |
getClientSession() |
static void |
main(String[] args) |
protected <T> void |
runUpload(String remote,
Collection<ScpClient.Option> options,
Collection<T> local,
AbstractScpClient.ScpOperationExecutor<T> executor) |
void |
upload(InputStream local,
String remote,
long size,
Collection<PosixFilePermission> perms,
ScpTimestamp time) |
addTargetIsDirectory, createReceiveCommand, createSendCommand, download, download, download, download, download, download, download, download, downloadBytes, getSession, openCommandChannel, upload, upload, upload, upload, upload, upload, upload, upload, upload, upload
public DefaultScpClient(ClientSession clientSession)
public DefaultScpClient(ClientSession clientSession, ScpTransferEventListener eventListener)
public ClientSession getClientSession()
ClientSession
usedpublic void download(String remote, OutputStream local) throws IOException
IOException
protected void download(String remote, FileSystem fs, Path local, Collection<ScpClient.Option> options) throws IOException
download
in class AbstractScpClient
IOException
public void upload(InputStream local, String remote, long size, Collection<PosixFilePermission> perms, ScpTimestamp time) throws IOException
IOException
protected <T> void runUpload(String remote, Collection<ScpClient.Option> options, Collection<T> local, AbstractScpClient.ScpOperationExecutor<T> executor) throws IOException
runUpload
in class AbstractScpClient
IOException
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.