Search in sources :

Example 1 with RiffProcessingException

use of com.drew.imaging.riff.RiffProcessingException in project tika by apache.

the class ImageMetadataExtractor method parseWebP.

public void parseWebP(File file) throws IOException, TikaException {
    try {
        com.drew.metadata.Metadata webPMetadata = new com.drew.metadata.Metadata();
        webPMetadata = WebpMetadataReader.readMetadata(file);
        handle(webPMetadata);
    } catch (IOException e) {
        throw e;
    } catch (RiffProcessingException e) {
        throw new TikaException("Can't process Riff data", e);
    } catch (MetadataException e) {
        throw new TikaException("Can't process Riff data", e);
    }
}
Also used : TikaException(org.apache.tika.exception.TikaException) Metadata(org.apache.tika.metadata.Metadata) XMPMetadata(org.apache.jempbox.xmp.XMPMetadata) RiffProcessingException(com.drew.imaging.riff.RiffProcessingException) IOException(java.io.IOException) MetadataException(com.drew.metadata.MetadataException)

Aggregations

RiffProcessingException (com.drew.imaging.riff.RiffProcessingException)1 MetadataException (com.drew.metadata.MetadataException)1 IOException (java.io.IOException)1 XMPMetadata (org.apache.jempbox.xmp.XMPMetadata)1 TikaException (org.apache.tika.exception.TikaException)1 Metadata (org.apache.tika.metadata.Metadata)1