DefaultSubtitleParserFactory
@UnstableApi
public final class DefaultSubtitleParserFactory implements SubtitleParser.Factory
A factory for SubtitleParser instances.
The formats supported by this factory are:
- SSA/ASS (
SsaParser) - WebVTT (
WebvttParser) - WebVTT (MP4) (
Mp4WebvttParser) - SubRip (
SubripParser) - TX3G (
Tx3gParser) - PGS (
PgsParser) - DVB (
DvbParser) - TTML (
TtmlParser)
Summary
Public constructors |
|---|
Public methods |
|
|---|---|
SubtitleParser |
Creates a |
int |
Returns the |
boolean |
supportsFormat(Format format)Returns whether the factory is able to instantiate a |
Inherited Constants |
||
|---|---|---|
|
Public constructors
Public methods
create
public SubtitleParser create(Format format)
Creates a SubtitleParser for the given Format.
| Returns | |
|---|---|
SubtitleParser |
The |
| Throws | |
|---|---|
java.lang.IllegalArgumentException |
if |
getCueReplacementBehavior
@Format.CueReplacementBehavior
public int getCueReplacementBehavior(Format format)
Returns the CueReplacementBehavior of the SubtitleParser implementation that handles format.
| Returns | |
|---|---|
int |
The replacement behavior. |
| Throws | |
|---|---|
java.lang.IllegalArgumentException |
if |
supportsFormat
public boolean supportsFormat(Format format)
Returns whether the factory is able to instantiate a SubtitleParser for the given Format.
| Returns | |
|---|---|
boolean |
Whether the factory can instantiate a suitable |