public final ImageMetadata getMetadata(final ByteSource byteSource) throws ImagingException, IOException {
        return getMetadata(byteSource, null);
    }
Gets image metadata from the specified byte source. Format-specific ImageParser implementations are expected to return a valid IImageMetadata object or
to throw an ImageReadException if unable to process the specified byte source.

@param byteSource A valid byte source.
@return A valid, potentially subject-matter-specific implementation of the IImageMetadata interface describing the content extracted from the source
        content.
@throws ImagingException In the event that the ByteSource content does not conform to the format of the specific parser implementation.
@throws IOException      In the event of unsuccessful data read operation.
src/main/java/org/apache/commons/imaging/AbstractImageParser.java