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, setMonitor
protected 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.IOException
FTPException
protected void start() throws java.io.IOException
java.io.IOException
protected void start(boolean firstTime) throws java.io.IOException
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
- if an I/O error occurs.Copyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.