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 void
close()
protected void
finalize()
int
read()
int
read(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:
read
in classjava.io.InputStream
- Parameters:
buffer
-offset
-len
-- Returns:
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Returns:
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.InputStream
- Throws:
java.io.IOException
-
finalize
protected void finalize() throws java.io.IOException
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.io.IOException
-
-