code: public void readData(DataInput din) throws IOException {
          // skip all following bytes
          int length = getDataLength();
          for (int i = 0; i < length; i++) {
              din.readByte();
          }
      }
docs: Read all of the data that can be read.  This is an unsupported
  function, so it may not be possible to know exactly how much data
  needs to be read.
  @throws java.io.IOException If the data cannot be read from the socket/port