Class SftpFileInputStream

java.lang.Object
java.io.InputStream
com.sshtools.client.sftp.SftpFileInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class SftpFileInputStream extends InputStream
An InputStream to read the contents of a remote file.
  • Constructor Details

    • SftpFileInputStream

      @Deprecated(since="3.1.0", forRemoval=true) public SftpFileInputStream(SftpFile file) throws com.sshtools.common.sftp.SftpStatusException, com.sshtools.common.ssh.SshException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new SftpFileInputStream object.
      Parameters:
      file - file
      Throws:
      com.sshtools.common.sftp.SftpStatusException
      com.sshtools.common.ssh.SshException
      See Also:
    • SftpFileInputStream

      @Deprecated(since="3.1.0", forRemoval=true) public SftpFileInputStream(SftpFile file, long position) throws com.sshtools.common.sftp.SftpStatusException, com.sshtools.common.ssh.SshException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new SftpFileInputStream object.
      Parameters:
      file - file
      position - at which to start reading
      Throws:
      com.sshtools.common.sftp.SftpStatusException
      com.sshtools.common.ssh.SshException
      See Also:
  • Method Details