public class MediaParser extends AbstractParser<MediaSource>
InputParser
implementation for
consuming media data and exposing it as an MediaSource
result.altFormat, resultType
Constructor and Description |
---|
MediaParser() |
Modifier and Type | Method and Description |
---|---|
<R extends MediaSource> |
parse(ParseSource parseSource,
InputProperties inProps,
java.lang.Class<R> resultClass)
Parses data in the supported representation format from the input stream
based upon the provided input properties into the provided target object.
|
createResult, createResult, getAltFormat, getResultType
public <R extends MediaSource> R parse(ParseSource parseSource, InputProperties inProps, java.lang.Class<R> resultClass)
InputParser
parseSource
- providing the source of the datainProps
- properties describing the input dataresultClass
- specific type of result expected from the parse