use of com.drew.imaging.jpeg.JpegProcessingException in project tika by apache.
the class ImageMetadataExtractor method parseJpeg.
public void parseJpeg(File file) throws IOException, SAXException, TikaException {
try {
com.drew.metadata.Metadata jpegMetadata = JpegMetadataReader.readMetadata(file);
handle(jpegMetadata);
} catch (JpegProcessingException e) {
throw new TikaException("Can't read JPEG metadata", e);
} catch (MetadataException e) {
throw new TikaException("Can't read JPEG metadata", e);
}
}
Aggregations