Search in sources :

Example 1 with TiffProcessingException

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);
    }
}
Also used : TikaException(org.apache.tika.exception.TikaException) TiffProcessingException(com.drew.imaging.tiff.TiffProcessingException) MetadataException(com.drew.metadata.MetadataException)

Aggregations

TiffProcessingException (com.drew.imaging.tiff.TiffProcessingException)1 MetadataException (com.drew.metadata.MetadataException)1 TikaException (org.apache.tika.exception.TikaException)1