Package tv.hd3g.transfertfiles
Interface AbstractFileSystem<T extends AbstractFile>
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
CommonAbstractFileSystem,FTPESFileSystem,FTPFileSystem,FTPSFileSystem,LocalFileSystem,SFTPFileSystem
Expected to be thread safe.
Don't forget to implements hashCode, equals and toString.
-
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()getFromPath(String path) default TgetFromPath(String path0, String... pathN) getHost()default int65535 bytesbooleanbooleanIf disconnected, can we re-connect after ?intdefault voidsetTimeout(long duration, TimeUnit unit) Set socket/connection timeout.
-
Method Details
-
connect
void connect() -
getFromPath
- Parameters:
path- relative path only
-
getFromPath
- Parameters:
path- relative path only
-
getIOBufferSize
default int getIOBufferSize()65535 bytes -
setTimeout
Set socket/connection timeout. -
isReusable
boolean isReusable()If disconnected, can we re-connect after ? -
isAvaliable
boolean isAvaliable() -
reusableHashCode
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.
-
getHost
InetAddress getHost() -
getUsername
String getUsername()
-