public void addComment(final String comment) throws ImagingException {
        comments.add(comment);
        if (failOnError) {
            throw new ImagingException(comment);
        }
    }
Provides information about the compliance of a specified data source (byte array, file, etc&#46;) to an image format.
src/main/java/org/apache/commons/imaging/FormatCompliance.java