public class ClassicFtpInputStream extends FtpInputStream
FtpInputStream for FTP connectionsin| Modifier and Type | Method and Description |
|---|---|
protected void |
beforeClose()
Invokes
FtpFileSystem.awaitCommandCompletion() to make sure that the operation is completed before closing the
stream |
static FtpInputStream |
newInstance(FtpConnector config,
FtpFileAttributes attributes,
org.mule.extension.file.common.api.lock.PathLock lock)
Establishes the underlying connection and returns a new instance of this class.
|
doClose, getConnectionHandler, getFtpFileSystem, getStreamSupplierclose, isLockedpublic static FtpInputStream newInstance(FtpConnector config, FtpFileAttributes attributes, org.mule.extension.file.common.api.lock.PathLock lock)
Instances returned by this method MUST be closed or fully consumed.
config - the FtpConnector which is configuring the connectionattributes - a FileAttributes referencing the file which contents are to be fetchedlock - the PathLock to be usedFtpInputStreamorg.mule.runtime.api.connection.ConnectionException - if a connection could not be establishedprotected void beforeClose()
throws IOException
FtpFileSystem.awaitCommandCompletion() to make sure that the operation is completed before closing the
streambeforeClose in class FtpInputStreamIOExceptionCopyright © 2018 MuleSoft, Inc.. All rights reserved.