Package com.jalios.jcms
Class ImageMetaDataExtractor
- java.lang.Object
-
- com.jalios.jcms.ImageMetaDataExtractor
-
- All Implemented Interfaces:
MetaDataExtractor
public class ImageMetaDataExtractor extends java.lang.Object implements MetaDataExtractor
This class extracts metadata of image files. For basic info (width, height, ...) it uses a repackaged implementation of ImageInfo. For JPEG files, Digital Camera metadata set (EXIF) a extracted with the Drew's metadata-extractor library.- Author:
- Olivier Dedieu
-
-
Constructor Summary
Constructors Constructor Description ImageMetaDataExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
getMap()
void
setFile(java.io.File file)
Set the file to extract the metadata
-
-
-
Method Detail
-
setFile
public void setFile(java.io.File file)
Description copied from interface:MetaDataExtractor
Set the file to extract the metadata- Specified by:
setFile
in interfaceMetaDataExtractor
- Parameters:
file
- the file to process
-
getMap
public java.util.Map<java.lang.String,java.lang.String> getMap()
- Specified by:
getMap
in interfaceMetaDataExtractor
- Returns:
- a map of metadata
-
-