Package com.jcraft.jsch
Class Channel
java.lang.Object
com.jcraft.jsch.Channel
- Direct Known Subclasses:
ChannelDirectTCPIP
,ChannelExec
,ChannelForwardedTCPIP
,ChannelSftp
,ChannelShell
,ChannelSubsystem
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
connect()
void
connect
(int connectTimeout) void
protected com.jcraft.jsch.Packet
int
int
getId()
boolean
isClosed()
boolean
boolean
isEOF()
protected void
protected void
protected void
sendOpenFailure
(int reasoncode) void
sendSignal
(String signal) void
void
setExtOutputStream
(OutputStream out, boolean dontclose) void
void
setInputStream
(InputStream in, boolean dontclose) void
void
setOutputStream
(OutputStream out, boolean dontclose) void
setXForwarding
(boolean foo) void
start()
-
Field Details
-
type
protected byte[] type -
session
-
-
Method Details
-
connect
- Throws:
JSchException
-
connect
- Throws:
JSchException
-
setXForwarding
public void setXForwarding(boolean foo) -
start
- Throws:
JSchException
-
isEOF
public boolean isEOF() -
setInputStream
-
setInputStream
-
setOutputStream
-
setOutputStream
-
setExtOutputStream
-
setExtOutputStream
-
getInputStream
- Throws:
IOException
-
getExtInputStream
- Throws:
IOException
-
getOutputStream
- Throws:
IOException
-
isClosed
public boolean isClosed() -
disconnect
public void disconnect() -
isConnected
public boolean isConnected() -
sendSignal
- Throws:
Exception
-
getExitStatus
public int getExitStatus() -
getSession
- Throws:
JSchException
-
getId
public int getId() -
sendOpenConfirmation
- Throws:
Exception
-
sendOpenFailure
protected void sendOpenFailure(int reasoncode) -
genChannelOpenPacket
protected com.jcraft.jsch.Packet genChannelOpenPacket() -
sendChannelOpen
- Throws:
Exception
-