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 com.sshtools.common.sftp.SftpStatusException, com.sshtools.common.ssh.SshException
file
- com.sshtools.common.sftp.SftpStatusException
com.sshtools.common.ssh.SshException
public SftpFileInputStream(SftpFile file, long position) throws com.sshtools.common.sftp.SftpStatusException, com.sshtools.common.ssh.SshException
file
- position
- at which to start readingcom.sshtools.common.sftp.SftpStatusException
com.sshtools.common.ssh.SshException
public int read(byte[] buffer, int offset, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int available()
available
in class java.io.InputStream
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
protected void finalize() throws java.io.IOException
finalize
in class java.lang.Object
java.io.IOException
Copyright © 2021. All rights reserved.