public interface SubtitleParser
Subtitle
s from a byte array.Modifier and Type | Method and Description |
---|---|
boolean |
canParse(String mimeType)
Checks whether the parser supports a given subtitle mime type.
|
Subtitle |
parse(byte[] bytes,
int offset,
int length)
Parses a
Subtitle from the provided byte[] . |
boolean canParse(String mimeType)
mimeType
- A subtitle mime type.Subtitle parse(byte[] bytes, int offset, int length) throws ParserException
Subtitle
from the provided byte[]
.bytes
- The array holding the subtitle data.offset
- The offset of the subtitle data in bytes.length
- The length of the subtitle data in bytes.ParserException
- If a problem occurred parsing the subtitle data.