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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetPathFromRelative(String path) DO NOT LEAK TO USER!longinthashCode()voidsetTimeout(long duration, TimeUnit unit) Set socket/connection timeout.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tv.hd3g.transfertfiles.AbstractFileSystem
connect, getFromPath, getFromPath, getHost, getIOBufferSize, getUsername, isAvaliable, isReusable, reusableHashCode
-
Field Details
-
timeoutDuration
protected long timeoutDuration
-
-
Constructor Details
-
CommonAbstractFileSystem
-
-
Method Details
-
getPathFromRelative
DO NOT LEAK TO USER!- Returns:
- absolute path from server.
-
getBasePath
-
hashCode
public int hashCode() -
equals
-
setTimeout
Description copied from interface:AbstractFileSystemSet socket/connection timeout.- Specified by:
setTimeoutin interfaceAbstractFileSystem<T extends AbstractFile>
-
getTimeout
public long getTimeout()
-