@Override
    public String toString() {
        final StringWriter sw = new StringWriter();
        final PrintWriter pw = new PrintWriter(sw);

        dump(pw);

        return sw.getBuffer().toString();
    }
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