ArchiveTool.Chunk

A chunk of data.

Methods
static ArchiveTool.Chunk read(DataInputStream in, boolean readKey)
Read a chunk.
static ArchiveTool.Chunk read(DataInputStream in, boolean readKey)
Read a chunk.
Parameters:
in - the input stream
readKey - whether to read the sort key
Returns:
the chunk, or null if 0 has been read
int compareTo(ArchiveTool.Chunk o)
int compareTo(ArchiveTool.Chunk o)
int write(DataOutputStream out, boolean writeKey)
Write a chunk.
int write(DataOutputStream out, boolean writeKey) throws IOException
Write a chunk.
Parameters:
out - the output stream
writeKey - whether to write the sort key
Returns:
the number of bytes written