Class MediaTimeFormat
java.lang.Object
java.text.Format
ca.phon.formatter.MediaTimeFormat
- All Implemented Interfaces:
Serializable,Cloneable
Text format for media time values, three formats are available:
- time in minutes and seconds:
1:3.5
- time in minutes and seconds with padded zeros:
001:03.500
- time in milliseconds:
63500
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.text.Format
Format.Field -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat(Object obj, StringBuffer toAppendTo, FieldPosition pos) protected StringmsToDisplayString(long ms, boolean padded) parseObject(String source, ParsePosition pos) Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator, parseObject
-
Constructor Details
-
MediaTimeFormat
public MediaTimeFormat() -
MediaTimeFormat
-
-
Method Details
-
format
-
msToDisplayString
- Throws:
IllegalArgumentException
-
parseObject
- Specified by:
parseObjectin classFormat
-