public final FormatCompliance getFormatCompliance(final byte[] bytes) throws ImagingException, IOException {
        return getFormatCompliance(ByteSource.array(bytes));
    }
Determines the format compliance of the content of the supplied byte array based on rules provided by a specific implementation.

@param bytes A valid byte array.
@return A valid FormatCompliance object.
@throws ImagingException may be thrown by sub-classes
@throws IOException      may be thrown by sub-classes
src/main/java/org/apache/commons/imaging/AbstractImageParser.java