javazoom.jlgui.player.amp.tag
Class TagInfoFactory

java.lang.Object
  extended by javazoom.jlgui.player.amp.tag.TagInfoFactory

public class TagInfoFactory
extends java.lang.Object

This class is a factory for TagInfo and TagInfoDialog. It allows to any plug custom TagIngfo parser matching to TagInfo interface.


Method Summary
static TagInfoFactory getInstance()
           
 TagInfo getTagInfo(java.io.File location)
          Get TagInfo for given file.
 TagInfo getTagInfo(java.lang.String location)
          Return tag info from a given String.
 TagInfo getTagInfo(java.net.URL location)
          Return tag info from a given URL.
 TagInfoDialog getTagInfoDialog(TagInfo taginfo)
          Return dialog (graphical) to display tag info.
 java.lang.Class getTagInfoImpl(java.lang.String classname)
          Load and check class implementation from classname.
 TagInfo getTagInfoImplInstance(java.lang.Class aClass)
          Return new instance of given class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TagInfoFactory getInstance()

getTagInfo

public TagInfo getTagInfo(java.net.URL location)
Return tag info from a given URL.

Parameters:
location -
Returns:
TagInfo structure for given URL

getTagInfo

public TagInfo getTagInfo(java.lang.String location)
Return tag info from a given String.

Parameters:
location -
Returns:
TagInfo structure for given location

getTagInfo

public TagInfo getTagInfo(java.io.File location)
Get TagInfo for given file.

Parameters:
location -
Returns:
TagInfo structure for given location

getTagInfoDialog

public TagInfoDialog getTagInfoDialog(TagInfo taginfo)
Return dialog (graphical) to display tag info.

Parameters:
taginfo -
Returns:
TagInfoDialog for given TagInfo

getTagInfoImpl

public java.lang.Class getTagInfoImpl(java.lang.String classname)
Load and check class implementation from classname.

Parameters:
classname -
Returns:
TagInfo implementation for given class name

getTagInfoImplInstance

public TagInfo getTagInfoImplInstance(java.lang.Class aClass)
Return new instance of given class.

Parameters:
aClass -
Returns:
TagInfo for given class


JavaZOOM 1999-2006