code: static String getString(final byte[] arr, final long off, final int lenBytes) throws IOException {
          final int ioff = (int) off;
          if (ioff < 0 || ioff > arr.length - lenBytes) {
              throw new IndexOutOfBoundsException();
          }
          return new String(arr, ioff, lenBytes, StandardCharsets.UTF_8);
      }
docs: Get a string from a byte array.
  
  @param arr
  the byte array
  @param off
  the offset to start reading from
  @param lenBytes
  the length of the string in bytes
  @return the string
  @throws IOException
  if an I/O exception occurs.