code: public void readData(DataInput din) throws IOException {
          function = din.readUnsignedShort();
          data = (short)(din.readShort() & 0xFFFF);
      }
docs: readData -- Read the function code and data value
  @throws java.io.IOException If the data cannot be read