Package com.trilead.ssh2.channel
Class Channel
- java.lang.Object
-
- com.trilead.ssh2.channel.Channel
-
public class Channel extends Object
Channel.- Version:
- $Id: Channel.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $
- Author:
- Christian Plattner, plattner@trilead.com
-
-
Constructor Summary
Constructors Constructor Description Channel(ChannelManager cm)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetExitSignal()IntegergetExitStatus()StringgetReasonClosed()Deprecated.ThrowablegetReasonClosedCause()ChannelInputStreamgetStderrStream()ChannelOutputStreamgetStdinStream()ChannelInputStreamgetStdoutStream()voidpipeStderrStream(OutputStream os)voidpipeStdoutStream(OutputStream os)voidrequestWindowChange(int term_width_characters, int term_height_characters, int term_width_pixels, int term_height_pixels)voidsetReasonClosed(String reasonClosed)voidsetReasonClosed(Throwable reasonClosed)voidsetWindowSize(int newSize)voidsignal(String name)
-
-
-
Constructor Detail
-
Channel
public Channel(ChannelManager cm)
-
-
Method Detail
-
setWindowSize
public void setWindowSize(int newSize)
-
getStderrStream
public ChannelInputStream getStderrStream()
-
getStdinStream
public ChannelOutputStream getStdinStream()
-
getStdoutStream
public ChannelInputStream getStdoutStream()
-
pipeStdoutStream
public void pipeStdoutStream(OutputStream os) throws IOException
- Throws:
IOException
-
pipeStderrStream
public void pipeStderrStream(OutputStream os) throws IOException
- Throws:
IOException
-
getExitSignal
public String getExitSignal()
-
getExitStatus
public Integer getExitStatus()
-
getReasonClosed
public String getReasonClosed()
Deprecated.Gets reason closed.- Returns:
- the reason closed
-
getReasonClosedCause
public Throwable getReasonClosedCause()
-
setReasonClosed
public void setReasonClosed(String reasonClosed)
-
setReasonClosed
public void setReasonClosed(Throwable reasonClosed)
-
requestWindowChange
public void requestWindowChange(int term_width_characters, int term_height_characters, int term_width_pixels, int term_height_pixels) throws IOException- Throws:
IOException
-
signal
public void signal(String name) throws IOException
- Throws:
IOException
-
-