thredds.filesystem
Class CacheFile
java.lang.Object
thredds.filesystem.CacheFile
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- CacheDirectory
public class CacheFile
- extends java.lang.Object
- implements java.io.Serializable
Lightweight, serializable representation of a java.io.File with arbitrary attributes
- Since:
- Mar 21, 2009
- Author:
- caron
- See Also:
- Serialized Form
|
Constructor Summary |
CacheFile(java.io.File f)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
shortName
protected java.lang.String shortName
lastModified
protected long lastModified
length
protected long length
isDirectory
protected boolean isDirectory
CacheFile
public CacheFile(java.io.File f)
getShortName
public java.lang.String getShortName()
getLastModified
public long getLastModified()
getLength
public long getLength()
isDirectory
public boolean isDirectory()
setAttribute
public void setAttribute(java.lang.String key,
java.lang.Object value)
getAttribute
public java.lang.Object getAttribute(java.lang.String key)