|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Time
A RepeatTime represents a t= field contained within a TimeDescription. A RepeatTime specifies the start and stop times for a SessionDescription. Note: this class uses java.util.Date objects. SDP messages encode time in NTP format. To convert between them use SdpFactory.getDateFromNtp(long) and SdpFactory.getNtpTime(Date). Quoting from RFC 2327: Multiple "t=" fields may be used if a session is active at multiple irregularly spaced times; each additional "t=" field specifies an additional period of time for which the session will be active. If the session is active at regular times, an "r=" field (see below) should be used in addition to and following a "t=" field - in which case the "t=" field specifies the start and stop times of the repeat sequence. Please refer to IETF RFC 2327 for a description of SDP.
| Method Summary | |
|---|---|
Date |
getStart()
Returns the start time of the conference/session. |
Date |
getStop()
Returns the stop time of the session |
boolean |
getTypedTime()
Returns whether the field will be output as a typed time or a integer value. |
boolean |
isZero()
Returns whether the start and stop times were set to zero (in NTP). |
void |
setStart(Date start)
Sets the start time of the conference/session. |
void |
setStop(Date stop)
Sets the stop time of the session. |
void |
setTypedTime(boolean typedTime)
Sets whether the field will be output as a typed time or a integer value. |
void |
setZero()
Sets the start and stop times to zero (in NTP). |
| Methods inherited from interface org.lastbamboo.common.sdp.api.Field |
|---|
clone, getTypeChar |
| Method Detail |
|---|
Date getStart()
throws SdpParseException
SdpParseException
void setStart(Date start)
throws SdpException
start - start - the start time for the session.
SdpException - if the date is null
Date getStop()
throws SdpParseException
SdpParseException
void setStop(Date stop)
throws SdpException
stop - start - the start time
SdpException - if the date is nullboolean isZero()
void setZero()
boolean getTypedTime()
void setTypedTime(boolean typedTime)
typedTime - typedTime - if set true, the start and stop times will
be output in an optimal typed time format; if false, the
times will be output as integers.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||