public boolean canAcceptType(final ImageFormat imageFormat) {
        return ArrayUtils.contains(getAcceptedTypes(), imageFormat);
    }
Tests whether the ImageParser implementation can accept the specified format.

@param imageFormat An instance of ImageFormat.
@return If the parser can accept the format, true; otherwise, false.
src/main/java/org/apache/commons/imaging/AbstractImageParser.java