thredds.filesystem
Class CacheDirectoryProto

java.lang.Object
  extended by thredds.filesystem.CacheDirectoryProto
All Implemented Interfaces:
Externalizable, Serializable

public class CacheDirectoryProto
extends Object
implements Externalizable

Externalizable representation of a java.io.File directory using protobuf for serialization.

Since:
Mar 21, 2009
Author:
caron
See Also:
Serialized Form

Field Summary
protected  long lastModified
           
protected  String path
           
 
Constructor Summary
CacheDirectoryProto()
           
CacheDirectoryProto(File dir)
           
 
Method Summary
 CacheFileProto[] getChildren()
           
 long getLastModified()
           
 String getPath()
           
 boolean notModified()
           
 void readExternal(ObjectInput in)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

path

protected String path

lastModified

protected long lastModified
Constructor Detail

CacheDirectoryProto

public CacheDirectoryProto()

CacheDirectoryProto

public CacheDirectoryProto(File dir)
Method Detail

getPath

public String getPath()

getLastModified

public long getLastModified()

notModified

public boolean notModified()

getChildren

public CacheFileProto[] getChildren()

toString

public String toString()
Overrides:
toString in class Object

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException


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