public interface ScpClient extends SessionHolder<ClientSession>, ClientSessionHolder
| Modifier and Type | Interface and Description |
|---|---|
static class |
ScpClient.Option |
getSessionContextgetClientSessiondefault ClientSession getSession()
getSession in interface SessionHolder<ClientSession>default void download(String remote, String local, ScpClient.Option... options) throws IOException
IOExceptionvoid download(String remote, String local, Collection<ScpClient.Option> options) throws IOException
IOExceptiondefault void download(String remote, Path local, ScpClient.Option... options) throws IOException
IOExceptionvoid download(String remote, Path local, Collection<ScpClient.Option> options) throws IOException
IOExceptionvoid download(String remote, OutputStream local) throws IOException
IOExceptiondefault byte[] downloadBytes(String remote) throws IOException
IOExceptiondefault void download(String[] remote, String local, ScpClient.Option... options) throws IOException
IOExceptiondefault void download(String[] remote, Path local, ScpClient.Option... options) throws IOException
IOExceptionvoid download(String[] remote, String local, Collection<ScpClient.Option> options) throws IOException
IOExceptionvoid download(String[] remote, Path local, Collection<ScpClient.Option> options) throws IOException
IOExceptiondefault void upload(String local, String remote, ScpClient.Option... options) throws IOException
IOExceptiondefault void upload(String local, String remote, Collection<ScpClient.Option> options) throws IOException
IOExceptiondefault void upload(Path local, String remote, ScpClient.Option... options) throws IOException
IOExceptiondefault void upload(Path local, String remote, Collection<ScpClient.Option> options) throws IOException
IOExceptiondefault void upload(String[] local, String remote, ScpClient.Option... options) throws IOException
IOExceptionvoid upload(String[] local, String remote, Collection<ScpClient.Option> options) throws IOException
IOExceptiondefault void upload(Path[] local, String remote, ScpClient.Option... options) throws IOException
IOExceptionvoid upload(Path[] local, String remote, Collection<ScpClient.Option> options) throws IOException
IOExceptiondefault void upload(byte[] data,
String remote,
Collection<PosixFilePermission> perms,
ScpTimestampCommandDetails time)
throws IOException
IOExceptiondefault void upload(byte[] data,
int offset,
int len,
String remote,
Collection<PosixFilePermission> perms,
ScpTimestampCommandDetails time)
throws IOException
IOExceptionvoid upload(InputStream local, String remote, long size, Collection<PosixFilePermission> perms, ScpTimestampCommandDetails time) throws IOException
IOExceptionstatic String createSendCommand(String remote, Collection<ScpClient.Option> options)
static String createReceiveCommand(String remote, Collection<ScpClient.Option> options)
static StringBuilder appendCommandOption(StringBuilder sb, Collection<ScpClient.Option> options, ScpClient.Option opt)
sb - The StringBuilder targetoptions - The command options - ignored if nullopt - The required optionCopyright © 2018–2021 The Apache Software Foundation. All rights reserved.