magoffin.matt.meta.image
Interface ImageMetadataResource

All Superinterfaces:
MetadataResource

public interface ImageMetadataResource
extends MetadataResource

API for image resources.

Version:
$Revision: 3 $ $Date: 2008-12-27 08:09:28 +1300 (Sat, 27 Dec 2008) $
Author:
Matt Magoffin (spamsqr@msqr.us)

Method Summary
 java.lang.Object getValue(ImageMetadataType type, java.util.Locale locale)
          Get a single metadata value based on a type constant.
 java.lang.Iterable<?> getValues(ImageMetadataType type, java.util.Locale locale)
          Get all available metadata values based on a type constant.
 
Methods inherited from interface magoffin.matt.meta.MetadataResource
getParsedKeys, getParseErrors, getValue, getValues
 

Method Detail

getValue

java.lang.Object getValue(ImageMetadataType type,
                          java.util.Locale locale)
Get a single metadata value based on a type constant.

If more than one metadata of the specified type is available, this will return the first available one.

Parameters:
type - the type
locale - a Locale
Returns:
the value, or null if not available

getValues

java.lang.Iterable<?> getValues(ImageMetadataType type,
                                java.util.Locale locale)
Get all available metadata values based on a type constant.

Parameters:
type - the type
locale - a Locale
Returns:
iterable for all values, never null