Package tv.hd3g.transfertfiles
Class CommonAbstractFileSystem<T extends AbstractFile>
- java.lang.Object
-
- tv.hd3g.transfertfiles.CommonAbstractFileSystem<T>
-
- All Implemented Interfaces:
Closeable,AutoCloseable,AbstractFileSystem<T>
- Direct Known Subclasses:
FTPFileSystem,LocalFileSystem,SFTPFileSystem
public abstract class CommonAbstractFileSystem<T extends AbstractFile> extends Object implements AbstractFileSystem<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected longtimeoutDuration
-
Constructor Summary
Constructors Modifier Constructor Description protectedCommonAbstractFileSystem(String basePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetBasePath()StringgetPathFromRelative(String path)DO NOT LEAK TO USER!longgetTimeout()inthashCode()voidsetTimeout(long duration, TimeUnit unit)Set socket/connection timeout.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface tv.hd3g.transfertfiles.AbstractFileSystem
connect, getFromPath, getFromPath, getIOBufferSize, isAvaliable, isReusable, reusableHashCode
-
-
-
-
Constructor Detail
-
CommonAbstractFileSystem
protected CommonAbstractFileSystem(String basePath)
-
-
Method Detail
-
getPathFromRelative
public String getPathFromRelative(String path)
DO NOT LEAK TO USER!- Returns:
- absolute path from server.
-
getBasePath
public String getBasePath()
-
setTimeout
public void setTimeout(long duration, TimeUnit unit)Description copied from interface:AbstractFileSystemSet socket/connection timeout.- Specified by:
setTimeoutin interfaceAbstractFileSystem<T extends AbstractFile>
-
getTimeout
public long getTimeout()
-
-