Package tv.hd3g.transfertfiles.local
Class LocalFileSystem
- java.lang.Object
-
- tv.hd3g.transfertfiles.CommonAbstractFileSystem<LocalFile>
-
- tv.hd3g.transfertfiles.local.LocalFileSystem
-
- All Implemented Interfaces:
Closeable,AutoCloseable,AbstractFileSystem<LocalFile>
public class LocalFileSystem extends CommonAbstractFileSystem<LocalFile>
-
-
Field Summary
-
Fields inherited from class tv.hd3g.transfertfiles.CommonAbstractFileSystem
timeoutDuration
-
-
Constructor Summary
Constructors Constructor Description LocalFileSystem(File relativePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidconnect()booleanequals(Object obj)LocalFilegetFromPath(String path)InetAddressgetHost()StringgetUsername()inthashCode()booleanisAvaliable()booleanisReusable()If disconnected, can we re-connect after ?intreusableHashCode()StringtoString()-
Methods inherited from class tv.hd3g.transfertfiles.CommonAbstractFileSystem
getBasePath, getPathFromRelative, getTimeout, setTimeout
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface tv.hd3g.transfertfiles.AbstractFileSystem
getFromPath, getIOBufferSize
-
-
-
-
Constructor Detail
-
LocalFileSystem
public LocalFileSystem(File relativePath)
-
-
Method Detail
-
isReusable
public boolean isReusable()
Description copied from interface:AbstractFileSystemIf disconnected, can we re-connect after ?
-
isAvaliable
public boolean isAvaliable()
-
connect
public void connect()
-
close
public void close()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classCommonAbstractFileSystem<LocalFile>
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classCommonAbstractFileSystem<LocalFile>
-
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.
-
getHost
public InetAddress getHost()
-
getUsername
public String getUsername()
-
-