org.compass.needle.coherence
Class FileHeaderValue

java.lang.Object
  extended by org.compass.needle.coherence.FileHeaderValue
All Implemented Interfaces:
com.tangosol.io.ExternalizableLite, Serializable

public class FileHeaderValue
extends Object
implements com.tangosol.io.ExternalizableLite

A file entry holds the meta data of a file, without its content.

Author:
kimchy
See Also:
Serialized Form

Constructor Summary
FileHeaderValue()
           
FileHeaderValue(long lastModified, long size)
           
 
Method Summary
 long getLastModified()
           
 long getSize()
           
 void readExternal(DataInput in)
           
 void touch()
           
 void writeExternal(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileHeaderValue

public FileHeaderValue()

FileHeaderValue

public FileHeaderValue(long lastModified,
                       long size)
Method Detail

getLastModified

public long getLastModified()

getSize

public long getSize()

touch

public void touch()

readExternal

public void readExternal(DataInput in)
                  throws IOException
Specified by:
readExternal in interface com.tangosol.io.ExternalizableLite
Throws:
IOException

writeExternal

public void writeExternal(DataOutput out)
                   throws IOException
Specified by:
writeExternal in interface com.tangosol.io.ExternalizableLite
Throws:
IOException


Copyright (c) 2004-2009 The Compass Project.