Package tv.hd3g.transfertfiles.ftp
Class FTPFileSystem
- All Implemented Interfaces:
Closeable,AutoCloseable,AbstractFileSystem<FTPFile>
- Direct Known Subclasses:
FTPESFileSystem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final InetAddressprotected final intprotected final StringFields inherited from class tv.hd3g.transfertfiles.CommonAbstractFileSystem
timeoutDuration -
Constructor Summary
ConstructorsConstructorDescriptionFTPFileSystem(InetAddress host, int port, String username, char[] password, boolean passiveMode, String basePath) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidconnect()booleanorg.apache.commons.net.ftp.FTPClientgetFromPath(String path) getHost()int65535 bytesinthashCode()booleanbooleanbooleanIf disconnected, can we re-connect after ?intvoidsetFtpListing(FTPListing ftpListing) toString()Methods inherited from class tv.hd3g.transfertfiles.CommonAbstractFileSystem
getBasePath, getPathFromRelative, getTimeout, setTimeoutMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface tv.hd3g.transfertfiles.AbstractFileSystem
getFromPath
-
Field Details
-
host
-
port
protected final int port -
username
-
-
Constructor Details
-
FTPFileSystem
public FTPFileSystem(InetAddress host, int port, String username, char[] password, boolean passiveMode, String basePath)
-
-
Method Details
-
toString
-
isPassiveMode
public boolean isPassiveMode() -
connect
public void connect() -
getHost
-
getUsername
-
isReusable
public boolean isReusable()Description copied from interface:AbstractFileSystemIf disconnected, can we re-connect after ? -
isAvaliable
public boolean isAvaliable() -
close
public void close() -
getClient
public org.apache.commons.net.ftp.FTPClient getClient() -
getIOBufferSize
public int getIOBufferSize()Description copied from interface:AbstractFileSystem65535 bytes -
getFromPath
- Parameters:
path- relative path only
-
setFtpListing
-
getFtpListing
-
hashCode
public int hashCode()- Overrides:
hashCodein classCommonAbstractFileSystem<FTPFile>
-
equals
- Overrides:
equalsin classCommonAbstractFileSystem<FTPFile>
-
reusableHashCode
public int reusableHashCode()- Returns:
- the same code for the same internal engine instance in FileSystem. Can be used for interract two FS and protect the both are not the same.
-