public class ProxyCommand extends Object implements com.jcraft.jsch.Proxy
Modifier and Type | Field and Description |
---|---|
protected String |
command |
protected InputStream |
in |
protected OutputStream |
out |
protected Process |
p |
Constructor and Description |
---|
ProxyCommand(String command) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
connect(com.jcraft.jsch.SocketFactory socket_factory,
String host,
int port,
int timeout) |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
Socket |
getSocket() |
protected String command
protected Process p
protected InputStream in
protected OutputStream out
public ProxyCommand(String command)
public void connect(com.jcraft.jsch.SocketFactory socket_factory, String host, int port, int timeout) throws Exception
connect
in interface com.jcraft.jsch.Proxy
Exception
public Socket getSocket()
getSocket
in interface com.jcraft.jsch.Proxy
public InputStream getInputStream()
getInputStream
in interface com.jcraft.jsch.Proxy
public OutputStream getOutputStream()
getOutputStream
in interface com.jcraft.jsch.Proxy
public void close()
close
in interface com.jcraft.jsch.Proxy
Copyright © 1999–2020 CodeLutin. All rights reserved.