public class DefaultScpClient extends AbstractScpClient
AbstractScpClient.ScpOperationExecutor<T>ScpClient.OptionlogDEFAULT_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) |
void |
download(String remote,
String local,
Collection<ScpClient.Option> options) |
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, downloadBytes, openCommandChannel, upload, upload, upload, upload, upload, upload, upload, upload, upload, uploadpublic DefaultScpClient(ClientSession clientSession)
public DefaultScpClient(ClientSession clientSession, ScpTransferEventListener eventListener)
public void download(String remote, String local, Collection<ScpClient.Option> options) throws IOException
IOExceptionpublic void download(String remote, OutputStream local) throws IOException
IOExceptionprotected void download(String remote, FileSystem fs, Path local, Collection<ScpClient.Option> options) throws IOException
download in class AbstractScpClientIOExceptionpublic void upload(InputStream local, String remote, long size, Collection<PosixFilePermission> perms, ScpTimestamp time) throws IOException
IOExceptionprotected <T> void runUpload(String remote, Collection<ScpClient.Option> options, Collection<T> local, AbstractScpClient.ScpOperationExecutor<T> executor) throws IOException
runUpload in class AbstractScpClientIOExceptionCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.