Class JCshConnection
java.lang.Object
net.thevpc.nuts.ext.ssh.SshConnectionBase
net.thevpc.nuts.ext.ssh.jcsh.JCshConnection
- All Implemented Interfaces:
AutoCloseable, SshConnection
-
Field Summary
FieldsFields inherited from class SshConnectionBase
connectionString, listenersFields inherited from interface SshConnection
IDENTITY_FILE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcopyLocalToRemote(String from, String to, boolean mkdirs) voidcopyRemoteToLocal(String from, String to, boolean mkdir) protected voidcopyRemoteToLocalScp(String from, String to, boolean mkdir) protected voidcopyRemoteToLocalSftp(String from, String to, boolean mkdir) intexecStringCommand(String command, IOBindings io) getInputStream(String from) getOutputStream(String from) booleanisAlive()booleanisClosed()com.jcraft.jsch.ChannelopenExecChannel(String command) prepareStream(File file) protected byte[]readRemoteFileScp(String from) protected byte[]readRemoteFileSftp(String from) static JCshConnectionunwrap(SshConnection any) Methods inherited from class SshConnectionBase
addListener, cmdArrayToString, cp, doEscapeArg, execArrayCommand, execArrayCommandGrabbed, execListCommand, execStringCommandGrabbed, failFast, getCharset, getContentEncoding, getContentLength, getContentType, getDigestWithCommand, getInfo, isFailFast, list, listInfos, mkdir, mv, removeListener, reset, rm, sailFast, setFailFast, type, walk
-
Field Details
-
USE
- See Also:
-
-
Constructor Details
-
JCshConnection
-
-
Method Details
-
unwrap
-
execStringCommand
-
readRemoteFileSftp
-
readRemoteFileScp
-
copyRemoteToLocal
-
copyRemoteToLocalSftp
-
copyRemoteToLocalScp
-
getInputStream
-
getOutputStream
-
copyLocalToRemote
-
isAlive
public boolean isAlive() -
isClosed
public boolean isClosed() -
close
public void close() -
openExecChannel
-
prepareStream
- Throws:
FileNotFoundException
-