code: public void write( DataOutput out ) throws IOException {
      WritableUtils.writeVInt(out, blocks.length);
      for(int i=0; i<blocks.length; i++) {
        blocks[i].write(out);
      }
    }
docs: serialization method