Package tv.hd3g.transfertfiles
Interface AbstractFileSystem<T extends AbstractFile>
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
CommonAbstractFileSystem,FTPESFileSystem,FTPFileSystem,FTPSFileSystem,LocalFileSystem,SFTPFileSystem
public interface AbstractFileSystem<T extends AbstractFile> extends Closeable
Expected to be thread safe. Don't forget to implements hashCode, equals and toString.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidconnect()TgetFromPath(String path)default TgetFromPath(String path0, String... pathN)default intgetIOBufferSize()65535 bytesbooleanisAvaliable()booleanisReusable()If disconnected, can we re-connect after ?intreusableHashCode()default voidsetTimeout(long duration, TimeUnit unit)Set socket/connection timeout.
-
-
-
Method Detail
-
connect
void connect()
-
getFromPath
default T getFromPath(String path0, String... pathN)
- Parameters:
path- relative path only
-
getIOBufferSize
default int getIOBufferSize()
65535 bytes
-
setTimeout
default void setTimeout(long duration, TimeUnit unit)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.
-
-