Code example for DataInput

Methods: readDouble, readInt

0
    sensitivity = s;
  } 
 
  @Override 
  public void readFields(DataInput in) throws IOException {
    this.row = in.readInt();
    this.column = in.readInt();
    this.sensitivity = in.readDouble();
  } 
 
  @Override 
  public void write(DataOutput out) throws IOException {
    out.writeInt(row);
    out.writeInt(column);
    out.writeDouble(sensitivity);
  } 
 
  public int getRow() { 
    return row;
  }