docs: public static byte[] readAllBytesAsArray(final InputStream inputStream, final long fileSize)
              throws IOException {
          final SimpleEntry<byte[], Integer> ent = readAllBytes(inputStream, fileSize);
          final byte[] buf = ent.getKey();
          final int bufBytesUsed = ent.getValue();
          return (buf.length == bufBytesUsed) ? buf : Arrays.copyOf(buf, bufBytesUsed);
      }