Пример #1
0
  @Override
  public void readConstructorParams(DataInput in) throws IOException {
    super.readConstructorParams(in);

    width = in.readInt();
    height = in.readInt();
  }
Пример #2
0
 @Override
 public void writeConstructorParams(DataOutput out) throws IOException {
   super.writeConstructorParams(out);
   out.writeInt(width);
   out.writeInt(height);
 }