public class SftpFileInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
SftpFileInputStream(SftpFile file) |
SftpFileInputStream(SftpFile file,
long position)
Creates a new SftpFileInputStream object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close()
Closes the SFTP file handle.
|
protected void |
finalize()
This method will only be available in J2SE builds
|
int |
read() |
int |
read(byte[] buffer,
int offset,
int len) |
public SftpFileInputStream(SftpFile file) throws SftpStatusException, SshException
file - SftpStatusExceptionSshExceptionpublic SftpFileInputStream(SftpFile file, long position) throws SftpStatusException, SshException
file - position - at which to start readingSftpStatusExceptionSshExceptionpublic int read(byte[] buffer,
int offset,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int available()
available in class java.io.InputStreampublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionprotected void finalize()
throws java.io.IOException
finalize in class java.lang.Objectjava.io.IOExceptionCopyright © 2022. All rights reserved.