示例#1
0
 /**
  * Returns TimeDescription object with the specified properties.
  *
  * @param start start time.
  * @param stop stop time.
  * @throws SdpException if the parameters are null
  * @return TimeDescription
  */
 public TimeDescription createTimeDescription(Date start, Date stop) throws SdpException {
   TimeDescriptionImpl timeDescriptionImpl = new TimeDescriptionImpl();
   TimeField timeImpl = new TimeField();
   timeImpl.setStart(start);
   timeImpl.setStop(stop);
   timeDescriptionImpl.setTime(timeImpl);
   return timeDescriptionImpl;
 }
示例#2
0
 /**
  * Returns a Time specification with the specified start and stop times.
  *
  * @param start start time
  * @param stop stop time
  * @throws SdpException if the parameters are null
  * @return a Time specification with the specified start and stop times.
  */
 public Time createTime(Date start, Date stop) throws SdpException {
   TimeField timeImpl = new TimeField();
   timeImpl.setStart(start);
   timeImpl.setStop(stop);
   return timeImpl;
 }