How it works
The sample follows the principle outlined in the JPEG Metadata Format Specification and Usage Notes, which is a part of the javax.imageio.metadata package description. Here is a pseudo code that follows that principle:
Iterator iter=ImageIO.getImageReadersByFormatName("jpeg");
ImageReader