public class JCshConnection extends SshConnectionBase
| Modifier and Type | Field and Description |
|---|---|
static String |
USE |
connectionString, listenersIDENTITY_FILE| Constructor and Description |
|---|
JCshConnection(NConnectionString connectionString) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
copyLocalToRemote(String from,
String to,
boolean mkdirs) |
void |
copyRemoteToLocal(String from,
String to,
boolean mkdir) |
protected void |
copyRemoteToLocalScp(String from,
String to,
boolean mkdir) |
protected void |
copyRemoteToLocalSftp(String from,
String to,
boolean mkdir) |
int |
execStringCommand(String command,
IOBindings io) |
InputStream |
getInputStream(String from) |
OutputStream |
getOutputStream(String from) |
boolean |
isAlive() |
boolean |
isClosed() |
com.jcraft.jsch.Channel |
openExecChannel(String command) |
InputStream |
prepareStream(File file) |
protected byte[] |
readRemoteFileScp(String from) |
protected byte[] |
readRemoteFileSftp(String from) |
static JCshConnection |
unwrap(SshConnection any) |
addListener, cmdArrayToString, cp, doEscapeArg, execArrayCommand, execArrayCommandGrabbed, execListCommand, execStringCommandGrabbed, failFast, getCharset, getContentEncoding, getContentLength, getContentType, getDigestWithCommand, getInfo, isFailFast, list, listInfos, mkdir, mv, removeListener, reset, rm, type, walkpublic static final String USE
public JCshConnection(NConnectionString connectionString)
public static JCshConnection unwrap(SshConnection any)
public int execStringCommand(String command, IOBindings io)
protected byte[] readRemoteFileSftp(String from)
protected byte[] readRemoteFileScp(String from)
public InputStream getInputStream(String from)
public OutputStream getOutputStream(String from)
public boolean isAlive()
public boolean isClosed()
public void close()
public com.jcraft.jsch.Channel openExecChannel(String command)
public InputStream prepareStream(File file) throws FileNotFoundException
FileNotFoundExceptionCopyright © 2026 vpc open source initiative. All rights reserved.