/** * Handles serialization. * * @param stream the output stream. * @throws java.io.IOException if there is an I/O problem. */ private void writeObject(final ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); final int rowCount = this.data.length; stream.writeInt(rowCount); for (int r = 0; r < rowCount; r++) { final Object[] column = this.data[r]; stream.writeBoolean(column != null); if (column != null) { final int columnCount = column.length; stream.writeInt(columnCount); for (int c = 0; c < columnCount; c++) { writeSerializedData(stream, column[c]); } } } }
/** * Handles serialization. * * @param stream the output stream. * @throws java.io.IOException if there is an I/O problem. */ private void writeObject(final ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); final int rowCount = this.data.length; stream.writeInt(rowCount); for (int r = 0; r < rowCount; r++) { final Object[] column = this.data[r]; stream.writeBoolean(column != null); if (column != null) { final int columnCount = column.length; stream.writeInt(columnCount); for (int c = 0; c < columnCount; c++) { writeSerializedData(stream, column[c]); } } } }
/** * Handles serialization. * * @param stream the output stream. * @throws java.io.IOException if there is an I/O problem. */ private void writeObject(final ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); final int rowCount = this.data.length; stream.writeInt(rowCount); for (int r = 0; r < rowCount; r++) { final Object[] column = this.data[r]; stream.writeBoolean(column != null); if (column != null) { final int columnCount = column.length; stream.writeInt(columnCount); for (int c = 0; c < columnCount; c++) { writeSerializedData(stream, column[c]); } } } }