code: public void write(DataOutput out) throws IOException {
      out.writeLong(offset);
      out.writeLong(length);
      out.writeBoolean(corrupt);
      out.writeInt(names.length);
      for (int i=0; i < names.length; i++) {
        Text name = new Text(names[i]);
        name.write(out);
      }
      out.writeInt(hosts.length);
      for (int i=0; i < hosts.length; i++) {
        Text host = new Text(hosts[i]);
        host.write(out);
      }
      out.writeInt(topologyPaths.length);
      for (int i=0; i < topologyPaths.length; i++) {
        Text host = new Text(topologyPaths[i]);
        host.write(out);
      }
    }
docs: Implement write of Writable