Package com.sshtools.j2ssh.sftp
Class SftpFileInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.sshtools.j2ssh.sftp.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 voidclose()protected voidfinalize()intread()intread(byte[] buffer, int offset, int len)
-
-
-
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:
readin classjava.io.InputStream- Parameters:
buffer-offset-len-- Returns:
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Returns:
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.InputStream- Throws:
java.io.IOException
-
finalize
protected void finalize() throws java.io.IOException- Overrides:
finalizein classjava.lang.Object- Throws:
java.io.IOException
-
-