|
Lizzy v1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object christophedelory.playlist.asx.Child christophedelory.playlist.asx.Duration
public class Duration
Defines the length of time the stream must be rendered.
This element can appear either within a REF element or within an ENTRY element.
However, a DURATION element defined within a REF element overrides one that appears within the REF element's parent ENTRY element.
The DURATION element overrides a PREVIEWDURATION element.
If the value exceeds the length of the content stream, the stream terminates at its normal end-point.
The default value is the entire length of the content stream or media.
If the entry is a graphic file, a duration value must be specified.
Windows Media Player version 7.0 or later.
Constructor Summary | |
---|---|
Duration()
|
Method Summary | |
---|---|
long |
getValue()
Returns the duration value in milliseconds. |
String |
getValueString()
Returns the duration value as a string in hours, minutes, seconds, and hundredths of a second. |
void |
setValue(long millis)
Initializes the duration value in milliseconds. |
void |
setValueString(String value)
Initializes the duration value as a string. |
Methods inherited from class christophedelory.playlist.asx.Child |
---|
getParent, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Duration()
Method Detail |
---|
public String getValueString()
hh:mm:ss.fract
".
null
.setValueString(java.lang.String)
,
getValue()
public void setValueString(String value)
value
- a duration value. Shall not be null
.
NullPointerException
- if value
is null
.
IllegalArgumentException
- if the given string is malformed.
IllegalArgumentException
- if the resulting number of milliseconds is negative.
NumberFormatException
- if the string does not contain parsable values.getValueString()
,
setValue(long)
public void setValue(long millis)
millis
- a duration value.
IllegalArgumentException
- if millis
is negative.getValue()
,
setValueString(java.lang.String)
public long getValue()
setValue(long)
,
getValueString()
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |