org.infinispan.io
Class GridFile.Metadata
java.lang.Object
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
|
FILE
public static final byte FILE
- See Also:
- Constant Field Values
DIR
public static final byte DIR
- See Also:
- Constant Field Values
GridFile.Metadata
public GridFile.Metadata()
GridFile.Metadata
public GridFile.Metadata(int length,
long modificationTime,
int chunkSize,
byte flags)
getLength
public int getLength()
setLength
public void setLength(int length)
getModificationTime
public long getModificationTime()
setModificationTime
public void setModificationTime(long modificationTime)
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 © 2012 JBoss, a division of Red Hat. All Rights Reserved.