thredds.filesystem
Class CacheFile

java.lang.Object
  extended by thredds.filesystem.CacheFile
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CacheDirectory

public class CacheFile
extends Object
implements 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  String shortName
           
 
Constructor Summary
CacheFile()
           
CacheFile(File f)
           
 
Method Summary
 Object getAttribute(String key)
           
 long getLastModified()
           
 long getLength()
           
 String getShortName()
           
 boolean isDirectory()
           
 void setAttribute(String key, Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

shortName

protected String shortName

lastModified

protected long lastModified

length

protected long length

isDirectory

protected boolean isDirectory
Constructor Detail

CacheFile

public CacheFile()

CacheFile

public CacheFile(File f)
Method Detail

getShortName

public String getShortName()

getLastModified

public long getLastModified()

getLength

public long getLength()

isDirectory

public boolean isDirectory()

setAttribute

public void setAttribute(String key,
                         Object value)

getAttribute

public Object getAttribute(String key)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.