|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolution.player.core.media.MediaInfo
public abstract class MediaInfo
A set of data about some media. This could be tag information stored in a MP3 file or information retrieved from a remote source.
Clients can implement.
MediaInfoBuilder
Nested Class Summary | |
---|---|
static class |
MediaInfo.MusicbrainzIdType
|
Constructor Summary | |
---|---|
MediaInfo()
Create a new media info. |
Method Summary | |
---|---|
static boolean |
canCreate(java.io.File file)
True if a media info can be created for the given file. |
static LocalMediaInfo |
create(java.io.File file)
Create a media info from the given media file. |
boolean |
equals(java.lang.Object obj)
|
abstract java.lang.String |
getAlbumName()
The name of the album, if any. |
abstract java.lang.String |
getArtistName()
The name of the artist, if any. |
java.lang.String |
getComment()
The comment tag. |
MediaId |
getId()
The global unique id of this media. |
abstract java.lang.String |
getMusicbrainzId(MediaInfo.MusicbrainzIdType type)
The musicbrainz id of this media, if any. |
abstract java.lang.String |
getSongName()
The name of the song, if any. |
abstract java.lang.String |
getTag(java.lang.String key)
The value of the tag with the given key, if any. |
abstract int |
getTrackNumber()
The number of the song on the album, if any. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MediaInfo()
Method Detail |
---|
public static boolean canCreate(java.io.File file)
file
- the media file
create(File)
will succeedpublic static LocalMediaInfo create(java.io.File file)
create(File)
returns false for the same file.
file
- the media file
public MediaId getId()
public abstract java.lang.String getSongName()
public abstract java.lang.String getAlbumName()
public abstract java.lang.String getArtistName()
public abstract int getTrackNumber()
public abstract java.lang.String getMusicbrainzId(MediaInfo.MusicbrainzIdType type)
type
- the kind of id to retrieve
public abstract java.lang.String getTag(java.lang.String key)
key
- the tag name
public java.lang.String getComment()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |