Package net.sf.okapi.filters.subtitles
Class CaptionAnnotation
- java.lang.Object
-
- net.sf.okapi.filters.subtitles.CaptionAnnotation
-
- All Implemented Interfaces:
Cloneable,Iterable<CaptionAnnotation.CaptionTiming>,IAnnotation
public class CaptionAnnotation extends Object implements IAnnotation, Iterable<CaptionAnnotation.CaptionTiming>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classCaptionAnnotation.CaptionTiming
-
Constructor Summary
Constructors Constructor Description CaptionAnnotation(DateTimeFormatter formatter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(String beginTime, String endTime)voidadd(LocalTime beginTime, LocalTime endTime)voidadd(CaptionAnnotation.CaptionTiming timing)CaptionAnnotation.CaptionTiminggetFirst()CaptionAnnotation.CaptionTiminggetLast()intgetMaxChar()intgetMaxLine()intgetSize()Iterator<CaptionAnnotation.CaptionTiming>iterator()voidsetMaxChar(int maxChar)voidsetMaxLine(int maxLine)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.okapi.common.annotation.IAnnotation
toString
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
CaptionAnnotation
public CaptionAnnotation(DateTimeFormatter formatter)
-
-
Method Detail
-
setMaxChar
public void setMaxChar(int maxChar)
-
setMaxLine
public void setMaxLine(int maxLine)
-
getMaxChar
public int getMaxChar()
-
getMaxLine
public int getMaxLine()
-
add
public void add(CaptionAnnotation.CaptionTiming timing)
-
getSize
public int getSize()
-
getFirst
public CaptionAnnotation.CaptionTiming getFirst()
-
getLast
public CaptionAnnotation.CaptionTiming getLast()
-
iterator
public Iterator<CaptionAnnotation.CaptionTiming> iterator()
- Specified by:
iteratorin interfaceIterable<CaptionAnnotation.CaptionTiming>
-
-