org.infinispan.io
Class GridFile.Metadata

java.lang.Object
  extended by org.infinispan.io.GridFile.Metadata
All Implemented Interfaces:
Externalizable, Serializable
Enclosing class:
GridFile

public static class GridFile.Metadata
extends Object
implements Externalizable

See Also:
Serialized Form

Field Summary
static byte DIR
           
static byte FILE
           
 
Constructor Summary
GridFile.Metadata()
           
GridFile.Metadata(int length, long modification_time, int chunk_size, byte flags)
           
 
Method Summary
 int getChunkSize()
           
 int getLength()
           
 long getModificationTime()
           
 boolean isDirectory()
           
 boolean isFile()
           
 void readExternal(ObjectInput in)
           
 void setLength(int length)
           
 void setModificationTime(long modification_time)
           
 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

FILE

public static final byte FILE
See Also:
Constant Field Values

DIR

public static final byte DIR
See Also:
Constant Field Values
Constructor Detail

GridFile.Metadata

public GridFile.Metadata()

GridFile.Metadata

public GridFile.Metadata(int length,
                         long modification_time,
                         int chunk_size,
                         byte flags)
Method Detail

getLength

public int getLength()

setLength

public void setLength(int length)

getModificationTime

public long getModificationTime()

setModificationTime

public void setModificationTime(long modification_time)

getChunkSize

public int getChunkSize()

isFile

public boolean isFile()

isDirectory

public boolean isDirectory()

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 © 2011 JBoss, a division of Red Hat. All Rights Reserved.