code: private static String getLongString(ByteBuffer buffer)
      {
          long len = getUnsignedInt(buffer);
          StringBuilder builder = new StringBuilder();
          for (int i = 0; i < len; i++)
          {
              builder.append((char)(buffer.get() & 0xff));
          }
          String s = builder.toString();
          return s;
      }
docs: 32-bit integer representing the length of the string.