com.evolution.player.core.media
Class LocalMediaInfo

java.lang.Object
  extended by com.evolution.player.core.media.MediaInfo
      extended by com.evolution.player.core.media.LocalMediaInfo

public abstract class LocalMediaInfo
extends MediaInfo

A media info based on a local file.

Clients must implement.

Since:
0.1
See Also:
MediaInfoProvider, MediaInfo

Nested Class Summary
 
Nested classes/interfaces inherited from class com.evolution.player.core.media.MediaInfo
MediaInfo.MusicbrainzIdType
 
Constructor Summary
LocalMediaInfo(java.io.File file)
          Create a new file based media info which is based on the given file.
 
Method Summary
 java.io.File getFile()
          The file on which this info is based on.
 MediaId getId()
          The global unique id of this media.
 java.lang.String toString()
           
 
Methods inherited from class com.evolution.player.core.media.MediaInfo
canCreate, create, equals, getAlbumName, getArtistName, getComment, getMusicbrainzId, getSongName, getTag, getTrackNumber, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalMediaInfo

public LocalMediaInfo(java.io.File file)
Create a new file based media info which is based on the given file.

Parameters:
file - the file to base to info on
Method Detail

getFile

public java.io.File getFile()
The file on which this info is based on.

Returns:
the file

getId

public MediaId getId()
Description copied from class: MediaInfo
The global unique id of this media.

Overrides:
getId in class MediaInfo
Returns:
the unique id for this media

toString

public java.lang.String toString()
Overrides:
toString in class MediaInfo