code: @NotNull
      public static Metadata readMetadata(@NotNull final InputStream inputStream) throws ImageProcessingException, IOException
      {
          return readMetadata(inputStream, -1);
      }
docs: Reads metadata from an {@link InputStream}.
  
  @param inputStream a stream from which the file data may be read.  The stream must be positioned at the
  beginning of the file's data.
  @return a populated {@link Metadata} object containing directories of tags with values and any processing errors.
  @throws ImageProcessingException if the file type is unknown, or for general processing errors.