SubtitleParser.Factory
public interface SubtitleParser.Factory
DefaultSubtitleParserFactory |
A factory for |
ThrowingSubtitleParserFactory |
A |
Factory for SubtitleParser instances.
Summary
Constants |
|
|---|---|
default static final SubtitleParser.Factory |
A subtitle parser factory that supports no formats. |
Public methods |
|
|---|---|
abstract SubtitleParser |
Creates a |
abstract int |
Returns the |
abstract boolean |
supportsFormat(Format format)Returns whether the factory is able to instantiate a |
Constants
UNSUPPORTED
default static final SubtitleParser.Factory UNSUPPORTED
A subtitle parser factory that supports no formats.
Public methods
create
abstract SubtitleParser create(Format format)
Creates a SubtitleParser for the given Format.
| Returns | |
|---|---|
SubtitleParser |
The |
| Throws | |
|---|---|
java.lang.IllegalArgumentException |
if |
getCueReplacementBehavior
@Format.CueReplacementBehavior
abstract 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
abstract 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 |