Class ChannelInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class ChannelInputStream
    extends java.io.InputStream
    Version:
    $Revision: 1.35 $
    Author:
    $author$
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int available()  
      void close()  
      void interrupt()  
      boolean isClosed()  
      int read()  
      int read​(byte[] b, int off, int len)  
      void setBlockInterrupt​(int interrupt)  
      • Methods inherited from class java.io.InputStream

        mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChannelInputStream

        public ChannelInputStream​(SshMessageStore messageStore,
                                  java.lang.Integer type)
        Creates a new ChannelInputStream object.
        Parameters:
        messageStore -
        type -
      • ChannelInputStream

        public ChannelInputStream​(SshMessageStore messageStore)
        Creates a new ChannelInputStream object.
        Parameters:
        messageStore -
    • Method Detail

      • available

        public int available()
        Overrides:
        available in class java.io.InputStream
        Returns:
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.InputStream
        Throws:
        java.io.IOException
      • isClosed

        public boolean isClosed()
        Returns:
      • setBlockInterrupt

        public void setBlockInterrupt​(int interrupt)
        Parameters:
        interrupt -
      • interrupt

        public void interrupt()
      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Returns:
        Throws:
        java.io.IOException
        java.io.InterruptedIOException
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Parameters:
        b -
        off -
        len -
        Returns:
        Throws:
        java.io.IOException
        java.io.IOException