org.jvoicexml.xml
Class TimeParser
java.lang.Object
org.jvoicexml.xml.TimeParser
public final class TimeParser
- extends Object
Utility class to parse a given time into milliseconds.
- Since:
- 0.6
Copyright © 2008 JVoiceXML group - http://jvoicexml.sourceforge.net/
- Version:
- $Revision: 2325 $
- Author:
- Dirk Schnelle
|
Method Summary |
long |
parse()
Parses the given time into milliseconds. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeParser
public TimeParser(String str)
- Constructs a new object.
- Parameters:
str - the given time to parse.
parse
public long parse()
- Parses the given time into milliseconds.
- Returns:
- number of milliseconds,
-1 if the value can not
be converted to a number.
Copyright © 2005-2009JVoiceXML group.