@Override
public ChunkedByteArray serialize(SCDataBlock block) throws Exception
{
ChunkedByteArray chunked = new ChunkedByteArray();
ObjectOutputStream out = new ObjectOutputStream(new GZIPOutputStream(new ChunkedByteArrayOutputStream(chunked)));
out.writeInt(FILE_VERSION);
out.writeInt(block.getVersionNumber());
out.writeLong(block.getTTL());
out.writeUTF(block.getKey());