public abstract class AbstractFTPInputStream extends FileTransferInputStream
| Modifier and Type | Field and Description |
|---|---|
protected FTPClient |
client
The client being used to perform the transfer
|
protected java.io.BufferedInputStream |
in
The input stream from the FTP server
|
closed, monitor, monitorCount, monitorEx, monitorInterval, pos, remoteFile, started| Constructor and Description |
|---|
AbstractFTPInputStream(FTPClient 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 FTPClient client
protected java.io.BufferedInputStream in
public AbstractFTPInputStream(FTPClient 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.