public class TimeField extends SDPField implements Time
| Modifier and Type | Field and Description |
|---|---|
protected long |
startTime |
protected long |
stopTime |
CORE_PACKAGE, SDPFIELDS_PACKAGEAND, 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, stringRepresentationATTRIBUTE_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, toStringdbgPrint, debugDump, equals, getStringRepresentation, initSprint, match, sprintclone, dbgPrint, dbgPrint, debugDump, encode, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprintfinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclone, getTypeCharpublic long getStartTime()
public long getStopTime()
public void setStartTime(long startTime)
public void setStopTime(long stopTime)
public Date getStart() throws SdpParseException
getStart in interface TimeSdpParseExceptionpublic Date getStop() throws SdpParseException
getStop in interface TimeSdpParseExceptionpublic void setStop(Date stop) throws SdpException
setStop in interface Timestop - start - the start timeSdpException - if the date is nullpublic void setStart(Date start) throws SdpException
setStart in interface Timestart - start - the start time for the session.SdpException - if the date is nullpublic boolean getTypedTime()
getTypedTime in interface Timepublic void setTypedTime(boolean typedTime)
setTypedTime in interface TimetypedTime - 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 © 2014. All Rights Reserved.