magoffin.matt.meta.audio
Interface AudioMetadataResource

All Superinterfaces:
MetadataResource
All Known Implementing Classes:
ID3v1_1MetadataResource, ID3v1MetadataResource, ID3v2_2MetadataResource, ID3v2_3MetadataResource, ID3v2_4MetadataResource

public interface AudioMetadataResource
extends MetadataResource

API for audio 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(AudioMetadataType type, java.util.Locale locale)
          Get a single metadata value based on a type constant.
 java.lang.Iterable<?> getValues(AudioMetadataType 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(AudioMetadataType 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(AudioMetadataType 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