Class SftpFileObject.SftpInputStream

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

    private class SftpFileObject.SftpInputStream
    extends MonitorInputStream
    An InputStream that monitors for end-of-file.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.jcraft.jsch.ChannelSftp channel  
      • Fields inherited from class java.io.BufferedInputStream

        buf, count, marklimit, markpos, pos
      • Fields inherited from class java.io.FilterInputStream

        in
    • Constructor Summary

      Constructors 
      Constructor Description
      SftpInputStream​(com.jcraft.jsch.ChannelSftp channel, java.io.InputStream in)  
      SftpInputStream​(com.jcraft.jsch.ChannelSftp channel, java.io.InputStream in, int bufferSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void onClose()
      Called after the stream has been closed.
      • Methods inherited from class java.io.BufferedInputStream

        mark, markSupported, reset, skip
      • Methods inherited from class java.io.FilterInputStream

        read
      • Methods inherited from class java.lang.Object

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

      • channel

        private final com.jcraft.jsch.ChannelSftp channel
    • Constructor Detail

      • SftpInputStream

        public SftpInputStream​(com.jcraft.jsch.ChannelSftp channel,
                               java.io.InputStream in)
      • SftpInputStream

        public SftpInputStream​(com.jcraft.jsch.ChannelSftp channel,
                               java.io.InputStream in,
                               int bufferSize)
    • Method Detail

      • onClose

        protected void onClose()
                        throws java.io.IOException
        Called after the stream has been closed.
        Overrides:
        onClose in class MonitorInputStream
        Throws:
        java.io.IOException - if an error occurs.