ICaptionsCollection

All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericEnumerable

public interface ICaptionsCollection extends System.Collections.Generic.IGenericEnumerable<ICaptions>

Represents a collection of the closed captions.

Methods

MethodDescription
get_Item(int index)Returns the closed captions by index.
add(String label, String filePath)Adds WebVTT closed captions at the end of the collection.
add(String label, InputStream stream)Adds WebVTT closed captions at the end of the collection.
remove(ICaptions captions)Removes the closed captions from the collection.
removeAt(int index)Removes the closed captions at the specified index.
clear()Removes all elements from the collection.
getCount()Returns the number of elements in the collection.

get_Item(int index)

public abstract ICaptions get_Item(int index)

Returns the closed captions by index. Read-only ICaptions.

Parameters:

ParameterTypeDescription
indexint

Returns: ICaptions

add(String label, String filePath)

public abstract ICaptions add(String label, String filePath)

Adds WebVTT closed captions at the end of the collection.

Parameters:

ParameterTypeDescription
labeljava.lang.StringLabel of the closed captions.
filePathjava.lang.StringPath to the file in WebVTT format.

Returns: ICaptions

add(String label, InputStream stream)

public abstract ICaptions add(String label, InputStream stream)

Adds WebVTT closed captions at the end of the collection.

Parameters:

ParameterTypeDescription
labeljava.lang.StringLabel of the closed captions.
streamjava.io.InputStreamInput stream with data in WebVTT format.

Returns: ICaptions

remove(ICaptions captions)

public abstract void remove(ICaptions captions)

Removes the closed captions from the collection.

Parameters:

ParameterTypeDescription
captionsICaptionsCaptions object that should be deleted.

removeAt(int index)

public abstract void removeAt(int index)

Removes the closed captions at the specified index.

Parameters:

ParameterTypeDescription
indexintIndex of the closed captions that should be deleted.

clear()

public abstract void clear()

Removes all elements from the collection.

getCount()

public abstract int getCount()

Returns the number of elements in the collection. Read-only int .

Returns: int