SubtitleDecoderFactory
@UnstableApi
public interface SubtitleDecoderFactory
A factory for SubtitleDecoder instances.
Summary
Constants |
|
|---|---|
default static final SubtitleDecoderFactory |
Default |
Public methods |
|
|---|---|
abstract SubtitleDecoder |
createDecoder(Format format)Creates a |
abstract boolean |
supportsFormat(Format format)Returns whether the factory is able to instantiate a |
Constants
DEFAULT
default static final SubtitleDecoderFactory DEFAULT
Default SubtitleDecoderFactory implementation.
Supports formats supported by DefaultSubtitleParserFactory as well as the following:
- Cea608 (
Cea608Decoder) - Cea708 (
Cea708Decoder)
Public methods
createDecoder
abstract SubtitleDecoder createDecoder(Format format)
Creates a SubtitleDecoder for the given Format.
| Returns | |
|---|---|
SubtitleDecoder |
A new |
| Throws | |
|---|---|
java.lang.IllegalArgumentException |
If the |
supportsFormat
abstract boolean supportsFormat(Format format)
Returns whether the factory is able to instantiate a SubtitleDecoder for the given Format.
| Returns | |
|---|---|
boolean |
Whether the factory can instantiate a suitable |