code: private byte[] receiveBytes(InputStream is) throws IOException {
          byte[] buffer = new byte[8192];
          int len = (is.read(buffer));
          if (len < 1) {
              throw new IOException("receiveBytes read " + len + " bytes.");
          }
          return Arrays.copyOf(buffer, len);
      }
docs: Receive some bytes from the player we are requesting metadata from.
  
  @param is the input stream associated with the player metadata socket.
  @return the bytes read.
  
  @throws IOException if there is a problem reading the response