com.bramosystems.oss.player.core.client
Class MediaInfo

java.lang.Object
  extended by com.bramosystems.oss.player.core.client.MediaInfo

public class MediaInfo
extends Object

Wraps media metadata information for a media file (such as ID3 tag entries for MP3 files)

Since:
0.6
Author:
Sikirulai Braheem

Nested Class Summary
static class MediaInfo.MediaInfoKey
          An enum of supported media metadata keys
 
Constructor Summary
MediaInfo()
           
 
Method Summary
 String asHTMLString()
          Returns an HTML table containing all MediaInfoKeys and their values for this object.
 ArrayList<MediaInfo.MediaInfoKey> getAvailableItems()
          Returns a list of MediaInfo.MediaInfoKeys that have metadata entries in a media file.
 String getItem(MediaInfo.MediaInfoKey key)
          Return the value associated with the specified MediaInfoKey.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MediaInfo

public MediaInfo()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

asHTMLString

public String asHTMLString()
Returns an HTML table containing all MediaInfoKeys and their values for this object. Useful during debugging operations.

Returns:
all MediaInfoKeys values as an HTML table.

getAvailableItems

public ArrayList<MediaInfo.MediaInfoKey> getAvailableItems()
Returns a list of MediaInfo.MediaInfoKeys that have metadata entries in a media file.

Returns:
list containing the keys of available media metadata.

getItem

public String getItem(MediaInfo.MediaInfoKey key)
Return the value associated with the specified MediaInfoKey.

Parameters:
key - the metadata key whose value is required.
Returns:
the value associated with specified metadata key.


Copyright © 2009-2011. All Rights Reserved.