Back to Exoplayer

ParsingLoadable.Parser (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/upstream/ParsingLoadable.Parser.html

latest1.8 KB
Original Source

Package com.google.android.exoplayer2.upstream

Interface ParsingLoadable.Parser<T>

  • All Known Implementing Classes:DashManifestParser, FilteringManifestParser, HlsPlaylistParser, SsManifestParserEnclosing class:ParsingLoadable<T>

public static interfaceParsingLoadable.Parser\<T\>

Parses an object from loaded data.

Method Summary

All Methods Instance Methods Abstract Methods | Modifier and Type | Method | Description | | --- | --- | --- | | T | parse​(Uri uri, InputStream inputStream) | Parses an object from a response. |

Method Detail

- 

parse

[T](ParsingLoadable.Parser.html "type parameter in ParsingLoadable.Parser")parse​([Uri](https://developer.android.com/reference/android/net/Uri.html "class or interface in android.net")uri,[InputStream](https://developer.android.com/reference/java/io/InputStream.html "class or interface in java.io")inputStream)
 throws[IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")

Parses an object from a response. Parameters:uri - The source Uri of the response, after any redirection.inputStream - An InputStream from which the response data can be read.Returns:The parsed object.Throws:ParserException - If an error occurs parsing the data.IOException - If an error occurs reading data from the stream.