public class ImageMetadataExtractor
extends java.lang.Object
Constructor and Description |
---|
ImageMetadataExtractor(Metadata metadata) |
ImageMetadataExtractor(Metadata metadata,
org.apache.tika.parser.image.ImageMetadataExtractor.DirectoryHandler... handlers) |
Modifier and Type | Method and Description |
---|---|
void |
parseJpeg(java.io.File file) |
void |
parseRawExif(byte[] exifData) |
void |
parseRawExif(java.io.InputStream stream,
int length,
boolean needsExifHeader) |
void |
parseRawXMP(byte[] xmpData) |
void |
parseTiff(java.io.File file) |
void |
parseWebP(java.io.File file) |
public ImageMetadataExtractor(Metadata metadata)
metadata
- to extract to, using default directory handlerspublic ImageMetadataExtractor(Metadata metadata, org.apache.tika.parser.image.ImageMetadataExtractor.DirectoryHandler... handlers)
metadata
- to extract tohandlers
- handlers in order, note that handlers may override values from earlier handlerspublic void parseJpeg(java.io.File file) throws java.io.IOException, org.xml.sax.SAXException, TikaException
java.io.IOException
org.xml.sax.SAXException
TikaException
public void parseTiff(java.io.File file) throws java.io.IOException, org.xml.sax.SAXException, TikaException
java.io.IOException
org.xml.sax.SAXException
TikaException
public void parseWebP(java.io.File file) throws java.io.IOException, TikaException
java.io.IOException
TikaException
public void parseRawExif(java.io.InputStream stream, int length, boolean needsExifHeader) throws java.io.IOException, org.xml.sax.SAXException, TikaException
java.io.IOException
org.xml.sax.SAXException
TikaException
public void parseRawExif(byte[] exifData) throws java.io.IOException, org.xml.sax.SAXException, TikaException
java.io.IOException
org.xml.sax.SAXException
TikaException
public void parseRawXMP(byte[] xmpData) throws java.io.IOException, org.xml.sax.SAXException, TikaException
java.io.IOException
org.xml.sax.SAXException
TikaException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"