public Date readOriginalTime(File jpeg) throws IOException, ParseException{
String dateString = null;
try{
Metadata meta = (new ExifReader(jpeg)).extract();
ExifDirectory exif = (ExifDirectory) meta.getDirectory(ExifDirectory.class);
dateString = exif.getString(ExifDirectory.TAG_DATETIME_ORIGINAL);
} catch (JpegProcessingException ex){
throw toIOException(ex, jpeg);
}
//interpret the dateString as an UTC dateTime value
return parseExifDate(dateString);