public void writeData(ObjectDataOutput out) throws IOException { out.writeUTF(mapName); out.writeInt(lsIndexes.size()); for (MapIndexInfo.IndexInfo indexInfo : lsIndexes) { indexInfo.writeData(out); } }
public void readData(ObjectDataInput in) throws IOException { mapName = in.readUTF(); int size = in.readInt(); for (int i = 0; i < size; i++) { MapIndexInfo.IndexInfo indexInfo = new MapIndexInfo.IndexInfo(); indexInfo.readData(in); lsIndexes.add(indexInfo); } }