public class SshConnectionAdapter extends Object implements SshConnection
IDENTITY_FILE| Constructor and Description |
|---|
SshConnectionAdapter(SshConnection connection) |
public SshConnectionAdapter(SshConnection connection)
public void reset()
reset in interface SshConnectionpublic SshConnection getConnection()
public SshConnection addListener(SshListener listener)
addListener in interface SshConnectionpublic SshConnection removeListener(SshListener listener)
removeListener in interface SshConnectionpublic int execListCommand(List<String> command, IOBindings io)
execListCommand in interface SshConnectionpublic int execArrayCommand(String[] command, IOBindings io)
execArrayCommand in interface SshConnectionpublic int mv(String from, String to)
mv in interface SshConnectionpublic IOResult execArrayCommandGrabbed(String... command)
execArrayCommandGrabbed in interface SshConnectionpublic IOResult execStringCommandGrabbed(String command)
execStringCommandGrabbed in interface SshConnectionpublic int execStringCommand(String command, IOBindings io)
execStringCommand in interface SshConnectionpublic void rm(String from, boolean R)
rm in interface SshConnectionpublic NPathType type(String path)
type in interface SshConnectionpublic void mkdir(String from, boolean p)
mkdir in interface SshConnectionpublic InputStream getInputStream(String from)
getInputStream in interface SshConnectionpublic OutputStream getOutputStream(String from)
getOutputStream in interface SshConnectionpublic boolean isAlive()
isAlive in interface SshConnectionpublic boolean isClosed()
isClosed in interface SshConnectionpublic List<String> list(String path)
list in interface SshConnectionpublic long getContentLength(String basePath)
getContentLength in interface SshConnectionpublic String getContentEncoding(String basePath)
getContentEncoding in interface SshConnectionpublic String getContentType(String basePath)
getContentType in interface SshConnectionpublic String getCharset(String basePath)
getCharset in interface SshConnectionpublic void cp(String path, String path1, boolean b)
cp in interface SshConnectionpublic List<String> walk(String path, boolean followLinks, int maxDepth)
walk in interface SshConnectionpublic void close()
close in interface AutoCloseableclose in interface SshConnectionpublic byte[] getDigestWithCommand(String algo, String path)
getDigestWithCommand in interface SshConnectionpublic NPathInfo getInfo(String path)
getInfo in interface SshConnectionpublic List<NPathInfo> listInfos(String path)
listInfos in interface SshConnectionCopyright © 2026 vpc open source initiative. All rights reserved.