Package tv.hd3g.transfertfiles
Class CachedFileAttributes
- java.lang.Object
-
- tv.hd3g.transfertfiles.CachedFileAttributes
-
public class CachedFileAttributes extends Object
-
-
Constructor Summary
Constructors Constructor Description CachedFileAttributes(AbstractFile abstractFile)Not optimized approach directly derived from AbstractFile.CachedFileAttributes(AbstractFile abstractFile, long length, long lastModified, boolean exists, boolean directory, boolean file, boolean link, boolean special)Attributes and AbstractFile attributes shoud be the same values (at the least on the creation).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)booleanexists()AbstractFilegetAbstractFile()StringgetName()StringgetParentPath()StringgetPath()inthashCode()booleanisDirectory()booleanisFile()booleanisHidden()booleanisLink()booleanisSpecial()longlastModified()longlength()static CachedFileAttributesnotExists(AbstractFile abstractFile)StringtoString()
-
-
-
Constructor Detail
-
CachedFileAttributes
public CachedFileAttributes(AbstractFile abstractFile, long length, long lastModified, boolean exists, boolean directory, boolean file, boolean link, boolean special)
Attributes and AbstractFile attributes shoud be the same values (at the least on the creation).
-
CachedFileAttributes
public CachedFileAttributes(AbstractFile abstractFile)
Not optimized approach directly derived from AbstractFile.
-
-
Method Detail
-
notExists
public static CachedFileAttributes notExists(AbstractFile abstractFile)
-
getAbstractFile
public AbstractFile getAbstractFile()
- Returns:
- the original data source. Warning: linked AbstractFileSystem may be disconnected.
-
getName
public String getName()
-
getPath
public String getPath()
-
getParentPath
public String getParentPath()
-
isHidden
public boolean isHidden()
-
length
public long length()
-
lastModified
public long lastModified()
-
exists
public boolean exists()
-
isDirectory
public boolean isDirectory()
-
isFile
public boolean isFile()
-
isLink
public boolean isLink()
-
isSpecial
public boolean isSpecial()
-
-