public void readData(DataInput din) throws IOException {
  function=din.readUnsignedShort();
  data=(short)(din.readShort() & 0xFFFF);
}

public void readData ( DataInput din ) throws IOException { function = din . readUnsignedShort ( ) ; data = ( short ) ( din . readShort ( ) & 0xFFFF ) ; }
readdata - - read the function code and data value
