Class Channel

java.lang.Object
com.jcraft.jsch.Channel
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
ChannelDirectTCPIP, ChannelExec, ChannelForwardedTCPIP, ChannelSftp, ChannelShell, ChannelSubsystem

public abstract class Channel extends Object implements Runnable
  • Field Details

    • type

      protected byte[] type
  • Method Details

    • connect

      public void connect() throws JSchException
      Throws:
      JSchException
    • connect

      public void connect(int connectTimeout) throws JSchException
      Throws:
      JSchException
    • setXForwarding

      public void setXForwarding(boolean foo)
    • start

      public void start() throws JSchException
      Throws:
      JSchException
    • isEOF

      public boolean isEOF()
    • setInputStream

      public void setInputStream(InputStream in)
    • setInputStream

      public void setInputStream(InputStream in, boolean dontclose)
    • setOutputStream

      public void setOutputStream(OutputStream out)
    • setOutputStream

      public void setOutputStream(OutputStream out, boolean dontclose)
    • setExtOutputStream

      public void setExtOutputStream(OutputStream out)
    • setExtOutputStream

      public void setExtOutputStream(OutputStream out, boolean dontclose)
    • getInputStream

      public InputStream getInputStream() throws IOException
      Throws:
      IOException
    • getExtInputStream

      public InputStream getExtInputStream() throws IOException
      Throws:
      IOException
    • getOutputStream

      public OutputStream getOutputStream() throws IOException
      Throws:
      IOException
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • isClosed

      public boolean isClosed()
    • disconnect

      public void disconnect()
    • isConnected

      public boolean isConnected()
    • sendSignal

      public void sendSignal(String signal) throws Exception
      Throws:
      Exception
    • getExitStatus

      public int getExitStatus()
    • getSession

      public Session getSession() throws JSchException
      Throws:
      JSchException
    • getId

      public int getId()
    • sendOpenConfirmation

      protected void sendOpenConfirmation() throws Exception
      Throws:
      Exception
    • sendOpenFailure

      protected void sendOpenFailure(int reasoncode)
    • genChannelOpenPacket

      protected Packet genChannelOpenPacket()
    • sendChannelOpen

      protected void sendChannelOpen() throws Exception
      Throws:
      Exception