Package org.apache.tika.parser.image
Class ImageMetadataExtractor
java.lang.Object
org.apache.tika.parser.image.ImageMetadataExtractor
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
Uses the Metadata Extractor library
to read EXIF and IPTC image metadata and map to Tika fields.
As of 2.4.0 the library supports jpeg and tiff.
As of 2.8.0 the library supports webp.
-
Constructor Summary
ConstructorsConstructorDescriptionImageMetadataExtractor(Metadata metadata) Deprecated.ImageMetadataExtractor(Metadata metadata, org.apache.tika.parser.image.ImageMetadataExtractor.DirectoryHandler... handlers) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidparseHeif(InputStream is) Deprecated.voidDeprecated.voidparseRawExif(byte[] exifData) Deprecated.voidparseRawExif(InputStream stream, int length, boolean needsExifHeader) Deprecated.voidparseRawXMP(byte[] xmpData) Deprecated.voidDeprecated.voidDeprecated.
-
Constructor Details
-
ImageMetadataExtractor
Deprecated.- Parameters:
metadata- to extract to, using default directory handlers
-
ImageMetadataExtractor
public ImageMetadataExtractor(Metadata metadata, org.apache.tika.parser.image.ImageMetadataExtractor.DirectoryHandler... handlers) Deprecated.- Parameters:
metadata- to extract tohandlers- handlers in order, note that handlers may override values from earlier handlers
-
-
Method Details
-
parseJpeg
Deprecated.- Throws:
IOExceptionSAXExceptionTikaException
-
parseTiff
Deprecated.- Throws:
IOExceptionSAXExceptionTikaException
-
parseWebP
Deprecated.- Throws:
IOExceptionTikaException
-
parseHeif
Deprecated.- Throws:
IOExceptionTikaException
-
parseRawExif
public void parseRawExif(InputStream stream, int length, boolean needsExifHeader) throws IOException, SAXException, TikaException Deprecated.- Throws:
IOExceptionSAXExceptionTikaException
-
parseRawExif
Deprecated.- Throws:
IOExceptionSAXExceptionTikaException
-
parseRawXMP
Deprecated.- Throws:
IOExceptionSAXExceptionTikaException
-