Map params = new HashMap();
boolean ignoreImageData = isPhilHarveyTestImage(imageFile);
params.put(PARAM_KEY_READ_THUMBNAILS, new Boolean(!ignoreImageData));
// note that metadata might be null if no metadata is found.
IImageMetadata metadata = Sanselan.getMetadata(imageFile, params);
if (null == metadata)
return;
JpegImageMetadata jpegMetadata = (JpegImageMetadata) metadata;
// note that exif might be null if no Exif metadata is found.