|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.data.media.mediarss.NormalPlayTime
public class NormalPlayTime
Time specification object which tries to conform to section 3.6 of RFC 2326 (Normal Play Time). It does not support ranges. It only supports a millisecond precision. Any time more precise than that will be lost when parsing.
| Field Summary | |
|---|---|
static NormalPlayTime |
NOW
The NormalPlayType 'now' |
| Constructor Summary | |
|---|---|
NormalPlayTime(long ms)
Creates a NormalPlayTime object. |
|
| Method Summary | |
|---|---|
java.lang.String |
getNptHhmmssRepresentation()
Gets the standard hh:mm:ss.fraction representation
for this object. |
java.lang.String |
getNptSecondsRepresentation()
Gets the standard seconds.fraction representation
for this object. |
long |
getTimeOffsetMs()
Returns the offset it milliseconds, -1l for NOW. |
boolean |
isNow()
Check whether this time is the special 'now' time. |
static NormalPlayTime |
parse(java.lang.String stringRep)
Parses a NormalPlayTime object and return it. |
java.lang.String |
toString()
Gets a valid string representation (seconds "." fraction). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final NormalPlayTime NOW
| Constructor Detail |
|---|
public NormalPlayTime(long ms)
NOW.
ms - time offset, in milliseconds| Method Detail |
|---|
public boolean isNow()
public long getTimeOffsetMs()
public static NormalPlayTime parse(java.lang.String stringRep)
throws java.text.ParseException
stringRep - string representation
java.text.ParseException - if the string representation could not
be parsedpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getNptSecondsRepresentation()
seconds.fraction representation
for this object.
seconds.fraction or "now"public java.lang.String getNptHhmmssRepresentation()
hh:mm:ss.fraction representation
for this object.
hh:mm:ss.fraction or "now"
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||