|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jsdp.util.TypedTime
public class TypedTime
Handles typed time representation used in SDP.
Field Summary | |
---|---|
static String |
DAYS
The days multiplier |
static String |
HOURS
The hours multiplier |
static String |
MINUTES
The minutes multiplier |
static String |
SECONDS
The seconds multiplier |
Constructor Summary | |
---|---|
TypedTime()
|
Method Summary | |
---|---|
static long |
getTime(String input)
Returns the long value of a typed time. |
static String |
toString(long time)
Returns a typed representation of a time value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DAYS
public static final String HOURS
public static final String MINUTES
public static final String SECONDS
Constructor Detail |
---|
public TypedTime()
Method Detail |
---|
public static long getTime(String input) throws SDPException
input
- the typed time
SDPException
- if an unknown multiplier is contained in the input
stringpublic static String toString(long time)
time
- the value to represent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |