Class SftpFileInputStream

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

    public class SftpFileInputStream
    extends java.io.InputStream
    Version:
    $Revision: 1.16 $
    Author:
    $author$
    • Constructor Summary

      Constructors 
      Constructor Description
      SftpFileInputStream​(SftpFile file)
      Creates a new SftpFileInputStream object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      protected void finalize()  
      int read()  
      int read​(byte[] buffer, int offset, int len)  
      • Methods inherited from class java.io.InputStream

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

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

      • SftpFileInputStream

        public SftpFileInputStream​(SftpFile file)
                            throws java.io.IOException
        Creates a new SftpFileInputStream object.
        Parameters:
        file -
        Throws:
        java.io.IOException
    • Method Detail

      • read

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

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Returns:
        Throws:
        java.io.IOException
      • 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
      • finalize

        protected void finalize()
                         throws java.io.IOException
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.io.IOException