com.jalios.jcms
Class ImageMetaDataExtractor

java.lang.Object
  extended by com.jalios.jcms.ImageMetaDataExtractor
All Implemented Interfaces:
MetaDataExtractor

public class ImageMetaDataExtractor
extends 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.

Version:
$Revision: 20348 $
Author:
Olivier Dedieu

Field Summary
static String REVISION
           
 
Constructor Summary
ImageMetaDataExtractor()
           
 
Method Summary
 Map getMap()
           
 void setFile(File file)
          Set the file to extract the metadata
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

ImageMetaDataExtractor

public ImageMetaDataExtractor()
Method Detail

setFile

public void setFile(File file)
Description copied from interface: MetaDataExtractor
Set the file to extract the metadata

Specified by:
setFile in interface MetaDataExtractor
Parameters:
file - the file to process

getMap

public Map getMap()
Specified by:
getMap in interface MetaDataExtractor
Returns:
a map of metadata


Copyright © 2001-2010 Jalios SA. All Rights Reserved.