com.sshtools.j2ssh.sftp
Class SftpFileInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.sshtools.j2ssh.sftp.SftpFileInputStream
All Implemented Interfaces:
java.io.Closeable

public class SftpFileInputStream
extends java.io.InputStream

Version:
$Revision: 1.16 $
Author:
$author$

Constructor Summary
SftpFileInputStream(SftpFile file)
          Creates a new SftpFileInputStream object.
 
Method Summary
 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, read, reset, skip
 
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.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


Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.