thredds.filesystem
Class CacheDirectoryProto
java.lang.Object
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
path
protected String path
lastModified
protected long lastModified
CacheDirectoryProto
public CacheDirectoryProto()
CacheDirectoryProto
public CacheDirectoryProto(File dir)
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.