SubtitleDecoderFactory


@UnstableApi
interface SubtitleDecoderFactory


A factory for SubtitleDecoder instances.

Summary

Constants

const SubtitleDecoderFactory!

Default SubtitleDecoderFactory implementation.

Public functions

SubtitleDecoder!

Creates a SubtitleDecoder for the given Format.

Boolean

Returns whether the factory is able to instantiate a SubtitleDecoder for the given Format.

Constants

DEFAULT

const val DEFAULTSubtitleDecoderFactory!

Default SubtitleDecoderFactory implementation.

Supports formats supported by DefaultSubtitleParserFactory as well as the following:

Public functions

createDecoder

fun createDecoder(format: Format!): SubtitleDecoder!

Creates a SubtitleDecoder for the given Format.

Parameters
format: Format!

The Format.

Throws
java.lang.IllegalArgumentException

If the Format is not supported.

supportsFormat

fun supportsFormat(format: Format!): Boolean

Returns whether the factory is able to instantiate a SubtitleDecoder for the given Format.

Parameters
format: Format!

The Format.

Returns
Boolean

Whether the factory can instantiate a suitable SubtitleDecoder.