public RepeatTime createRepeatTime(int repeatInterval,int activeDuration,int[] offsets){
  RepeatField repeatTimeField=new RepeatField();
  try {
    repeatTimeField.setRepeatInterval(repeatInterval);
    repeatTimeField.setActiveDuration(activeDuration);
    repeatTimeField.setOffsetArray(offsets);
  }
 catch (  SdpException s) {
    s.printStackTrace();
  }
  return repeatTimeField;
}

public RepeatTime createRepeatTime ( int repeatInterval , int activeDuration , int [ ] offsets ) { RepeatField repeatTimeField = new RepeatField ( ) ; try { repeatTimeField . setRepeatInterval ( repeatInterval ) ; repeatTimeField . setActiveDuration ( activeDuration ) ; repeatTimeField . setOffsetArray ( offsets ) ; } catch ( SdpException s ) { s . printStackTrace ( ) ; } return repeatTimeField ; }
returns a repeattime object with the specified interval , duration , and time offsets .
