|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.baka.ambient.lrc.lyrdb.LyrdbTrack
public final class LyrdbTrack
An immutable LyrDB track as returned by the LyrDB search.
Field Summary | |
---|---|
String |
artist
artist |
String |
displayableString
A displayable string |
String |
id
the LyrDB id. |
String |
trackName
The track name. |
Constructor Summary | |
---|---|
LyrdbTrack(String id,
String trackName,
String artist)
Creates new track. |
Method Summary | |
---|---|
static LyrdbTrack |
fromSearchLine(String line)
Parses the result line and returns the track. |
URL |
getKaraokeURL()
Returns URL of the karaoke file for this track. |
static List<LyrdbTrack> |
search(TrackMetadataBean track,
boolean relevantOnly)
Search for a karaoke files for given track. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final String id
public final String trackName
public final String artist
public final String displayableString
Constructor Detail |
---|
public LyrdbTrack(String id, String trackName, String artist)
id
- the LyrDB id.trackName
- the track name.artist
- artistMethod Detail |
---|
public static LyrdbTrack fromSearchLine(String line)
line
- the line to parse
null
track instance or null
if the
line was not in a correct format.public URL getKaraokeURL() throws MalformedURLException
MalformedURLException
public static List<LyrdbTrack> search(TrackMetadataBean track, boolean relevantOnly) throws IOException
track
- search for lyrics for this track.relevantOnly
- if true
then only the most relevant results are
returned.
null
.
IOException
- if i/o error occurs.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |