Class CaptionImpl

java.lang.Object
org.opencastproject.caption.impl.CaptionImpl
All Implemented Interfaces:
Caption

public class CaptionImpl extends Object implements Caption
Implementation of Caption. Caption text is stored in array where each element represents one caption line.
  • Constructor Details

    • CaptionImpl

      public CaptionImpl(Time startTime, Time stopTime, String[] captionLines)
  • Method Details

    • getCaption

      public String[] getCaption()
      Get the caption text.
      Specified by:
      getCaption in interface Caption
      Returns:
      caption text
    • getStartTime

      public Time getStartTime()
      Get the start time of the caption.
      Specified by:
      getStartTime in interface Caption
      Returns:
      caption start time
    • getStopTime

      public Time getStopTime()
      Get the end time of the caption.
      Specified by:
      getStopTime in interface Caption
      Returns:
      caption end time