public void read(ObjectInput in) throws IOException, ClassNotFoundException { super.read(in); String format = in.readUTF(); if (format.length() == 0) format = null; int rowCount = in.readInt(); List<Object[]> grid = new ArrayList<Object[]>(rowCount); for (int i = 0; i < rowCount; i++) { int cellCount = in.readInt(); Object[] row = new Object[cellCount]; for (int j = 0; j < cellCount; j++) { row[j] = in.readObject(); } grid.add(row); } setPayload(new GridData(format, grid)); } }
public void read(ObjectInput in) throws IOException, ClassNotFoundException { super.read(in); String format = in.readUTF(); if (format.length() == 0) format = null; int rowCount = in.readInt(); List<Object[]> grid = new ArrayList<Object[]>(rowCount); for (int i = 0; i < rowCount; i++) { int cellCount = in.readInt(); Object[] row = new Object[cellCount]; for (int j = 0; j < cellCount; j++) { row[j] = in.readObject(); } grid.add(row); } setPayload(new GridData(format, grid)); } }