use of com.drew.imaging.tiff.TiffProcessingException in project tika by apache.
the class ImageMetadataExtractor method parseTiff.
public void parseTiff(File file) throws IOException, SAXException, TikaException {
try {
com.drew.metadata.Metadata tiffMetadata = TiffMetadataReader.readMetadata(file);
handle(tiffMetadata);
} catch (MetadataException e) {
throw new TikaException("Can't read TIFF metadata", e);
} catch (TiffProcessingException e) {
throw new TikaException("Can't read TIFF metadata", e);
}
}
Aggregations