public static class GridFile.Metadata extends Object implements Streamable
Constructor and Description |
---|
GridFile.Metadata() |
GridFile.Metadata(int length,
long modification_time,
int chunk_size,
byte flags) |
Modifier and Type | Method and Description |
---|---|
int |
getChunkSize() |
int |
getLength() |
long |
getModificationTime() |
boolean |
isDirectory() |
boolean |
isFile() |
void |
readFrom(DataInputStream in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
void |
setLength(int length) |
void |
setModificationTime(long modification_time) |
String |
toString() |
void |
writeTo(DataOutputStream out)
Write the entire state of the current object (including superclasses) to outstream.
|
public static final byte FILE
public static final byte DIR
public GridFile.Metadata()
public GridFile.Metadata(int length, long modification_time, int chunk_size, byte flags)
public int getLength()
public void setLength(int length)
public long getModificationTime()
public void setModificationTime(long modification_time)
public int getChunkSize()
public boolean isFile()
public boolean isDirectory()
public void writeTo(DataOutputStream out) throws IOException
Streamable
writeTo
in interface Streamable
IOException
public void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException
Streamable
readFrom
in interface Streamable
IOException
IllegalAccessException
InstantiationException
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.