public void readData(DataInput din) throws IOException {
  int byteCount=din.readUnsignedByte();
  int recordCount=byteCount / 7;
  records=new RecordRequest[recordCount];
  for (int i=0; i < recordCount; i++) {
    if (din.readByte() != 6) {
      throw new IOException();
    }
    int file=din.readUnsignedShort();
    int record=din.readUnsignedShort();
    if (record < 0 || record >= 10000) {
      throw new IOException();
    }
    int count=din.readUnsignedShort();
    records[i]=new RecordRequest(file,record,count);
  }
}

public void readData ( DataInput din ) throws IOException { int byteCount = din . readUnsignedByte ( ) ; int recordCount = byteCount / 7 ; records = new RecordRequest [ recordCount ] ; for ( int i = 0 ; i < recordCount ; i ++ ) { if ( din . readByte ( ) != 6 ) { throw new IOException ( ) ; } int file = din . readUnsignedShort ( ) ; int record = din . readUnsignedShort ( ) ; if ( record < 0 || record >= 10000 ) { throw new IOException ( ) ; } int count = din . readUnsignedShort ( ) ; records [ i ] = new RecordRequest ( file , record , count ) ; } }
readdata - - read all the data for this request .
