Class SftpOutputStreamAsync.ChannelReader

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.nio.channels.ReadableByteChannel src  
      private long stillToRead  
    • Constructor Summary

      Constructors 
      Constructor Description
      ChannelReader​(java.nio.channels.ReadableByteChannel src, long toRead)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int read​(byte[] buffer, int offset, int length)  
      • Methods inherited from class java.lang.Object

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

      • src

        private final java.nio.channels.ReadableByteChannel src
      • stillToRead

        private long stillToRead
    • Constructor Detail

      • ChannelReader

        ChannelReader​(java.nio.channels.ReadableByteChannel src,
                      long toRead)
    • Method Detail

      • read

        public int read​(byte[] buffer,
                        int offset,
                        int length)
                 throws java.io.IOException
        Specified by:
        read in interface SftpOutputStreamAsync.ByteInput
        Throws:
        java.io.IOException