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