|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deepfs.fsml.util.ParserUtil
public final class ParserUtil
Utility methods for file parsers.
Method Summary | |
---|---|
static XMLGregorianCalendar |
convertDateTime(Date date)
Converts a date value to an xml date value. |
static XMLGregorianCalendar |
convertDateTime(GregorianCalendar gc)
Converts a date value to an xml date value. |
static Duration |
convertDuration(byte[] value)
Checks if the value is of the form mm:ss or if it is a
milliseconds value and returns a Duration instance. |
static Duration |
convertMsDuration(int milliseconds)
Converts a duration value in milliseconds to an Duration instance. |
static XMLGregorianCalendar |
convertYear(int year)
Converts a year value to an xml date value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Duration convertMsDuration(int milliseconds)
Duration
instance.
milliseconds
- the number of milliseconds to convert
Duration
instance or null
if the
conversion failspublic static Duration convertDuration(byte[] value)
mm:ss
or if it is a
milliseconds value and returns a Duration
instance.
value
- the byte array to convert
Duration
instance or null
if the
conversion failspublic static XMLGregorianCalendar convertDateTime(GregorianCalendar gc)
gc
- the calendar value to convert
public static XMLGregorianCalendar convertDateTime(Date date)
date
- the Date
value to convert
public static XMLGregorianCalendar convertYear(int year)
year
- the year value to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |