public abstract class AbstractSFTPInputStream extends FileTransferInputStream
| Modifier and Type | Field and Description |
|---|---|
protected SSHFTPClient |
client
The client being used to perform the transfer
|
protected com.enterprisedt.net.j2ssh.sftp.SftpFileInputStream |
in |
protected com.enterprisedt.net.j2ssh.SftpClient |
sftp
Implementation object
|
closed, monitor, monitorCount, monitorEx, monitorInterval, pos, remoteFile, started| Constructor and Description |
|---|
AbstractSFTPInputStream(SSHFTPClient client,
java.lang.String remoteFile)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this input stream and releases any system resources associated
with the stream.
|
protected void |
start() |
protected void |
start(boolean firstTime)
Start the transfer
|
checkMonitor, getRemoteFile, setMonitorprotected SSHFTPClient client
protected com.enterprisedt.net.j2ssh.SftpClient sftp
protected com.enterprisedt.net.j2ssh.sftp.SftpFileInputStream in
public AbstractSFTPInputStream(SSHFTPClient client, java.lang.String remoteFile) throws java.io.IOException, FTPException
client - connected FTPClient instanceremoteFile - remote filejava.io.IOExceptionFTPExceptionprotected void start()
throws java.io.IOException
java.io.IOExceptionprotected void start(boolean firstTime)
throws java.io.IOException
java.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.IOException - if an I/O error occurs.Copyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.