com.sshtools.j2ssh
Class ScpClient.ScpInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.sshtools.j2ssh.ScpClient.ScpInputStream
All Implemented Interfaces:
java.io.Closeable
Enclosing class:
ScpClient

 class ScpClient.ScpInputStream
extends java.io.InputStream


Field Summary
(package private)  ScpClient.ScpChannel channel
           
(package private)  long count
           
(package private)  java.io.InputStream in
           
(package private)  long length
           
 
Constructor Summary
ScpClient.ScpInputStream(long length, java.io.InputStream in, ScpClient.ScpChannel channel)
           
 
Method Summary
 void close()
           
 int read()
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

length

long length

in

java.io.InputStream in

count

long count

channel

ScpClient.ScpChannel channel
Constructor Detail

ScpClient.ScpInputStream

ScpClient.ScpInputStream(long length,
                         java.io.InputStream in,
                         ScpClient.ScpChannel channel)
Method Detail

read

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

close

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