thredds.filesystem
Class CacheFile

java.lang.Object
  extended by 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

Field Summary
protected  boolean isDirectory
           
protected  long lastModified
           
protected  long length
           
protected  java.lang.String shortName
           
 
Constructor Summary
CacheFile(java.io.File f)
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String key)
           
 long getLastModified()
           
 long getLength()
           
 java.lang.String getShortName()
           
 boolean isDirectory()
           
 void setAttribute(java.lang.String key, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shortName

protected java.lang.String shortName

lastModified

protected long lastModified

length

protected long length

isDirectory

protected boolean isDirectory
Constructor Detail

CacheFile

public CacheFile(java.io.File f)
Method Detail

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)