public class TimeField extends SDPField implements Time
Modifier and Type | Field and Description |
---|---|
protected long |
startTime |
protected long |
stopTime |
CORE_PACKAGE, SDPFIELDS_PACKAGE
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation
ATTRIBUTE_FIELD, BANDWIDTH_FIELD, CONNECTION_FIELD, EMAIL_FIELD, INFORMATION_FIELD, KEY_FIELD, MEDIA_FIELD, ORIGIN_FIELD, PHONE_FIELD, PROTO_VERSION_FIELD, REPEAT_FIELD, SESSION_NAME_FIELD, TIME_FIELD, URI_FIELD, ZONE_FIELD
Constructor and Description |
---|
TimeField() |
Modifier and Type | Method and Description |
---|---|
String |
encode()
Get the string encoded version of this object
|
Date |
getStart()
Returns the start time of the conference/session.
|
long |
getStartTime() |
Date |
getStop()
Returns the stop time of the session
|
long |
getStopTime() |
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 |
setStartTime(long startTime)
Set the startTime member
|
void |
setStop(Date stop)
Sets the stop time of the session.
|
void |
setStopTime(long stopTime)
Set the stopTime member
|
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).
|
getFieldName, getTypeChar, toString
dbgPrint, debugDump, equals, getStringRepresentation, initSprint, match, sprint
clone, dbgPrint, dbgPrint, debugDump, encode, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, getTypeChar
public long getStartTime()
public long getStopTime()
public void setStartTime(long startTime)
public void setStopTime(long stopTime)
public Date getStart() throws SdpParseException
getStart
in interface Time
SdpParseException
public Date getStop() throws SdpParseException
getStop
in interface Time
SdpParseException
public void setStop(Date stop) throws SdpException
setStop
in interface Time
stop
- start - the start timeSdpException
- if the date is nullpublic void setStart(Date start) throws SdpException
setStart
in interface Time
start
- start - the start time for the session.SdpException
- if the date is nullpublic boolean getTypedTime()
getTypedTime
in interface Time
public void setTypedTime(boolean typedTime)
setTypedTime
in interface Time
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.public boolean isZero()
public void setZero()
Copyright © 2018. All Rights Reserved.