|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.baka.ambient.lrc.LRCLyrics
public final class LRCLyrics
Parses the LRC karaoke format (more on wiki). Thread-safe.
Method Summary | |
---|---|
SortedMap<Long,String> |
getLines()
Returns all lines in this lyrics instance. |
String |
getLineToDisplay(long time)
Returns line which should be displayed at given time. |
long |
getNextLineTime(long time)
Returns next line time. |
static LRCLyrics |
parse(InputStream in)
Parses given LRC file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public SortedMap<Long,String> getLines()
public String getLineToDisplay(long time)
time
- the time.
null
, may be empty.public long getNextLineTime(long time)
time
- current time.
public static LRCLyrics parse(InputStream in) throws IOException, ParseException
in
- the file to parse. The stream is always closed, even in cause
of an exception
IOException
- if i/o error occurs.
ParseException
- if parse error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |