Back to Exoplayer

FilteringManifestParser (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/offline/FilteringManifestParser.html

latest4.2 KB
Original Source

Package com.google.android.exoplayer2.offline

Class FilteringManifestParser<T extends FilterableManifest<T>>

  • java.lang.Object

    • com.google.android.exoplayer2.offline.FilteringManifestParser<T>
  • Type Parameters:T - The FilterableManifest type.All Implemented Interfaces:ParsingLoadable.Parser<T>


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classFilteringManifestParser\<T extends [FilterableManifest](FilterableManifest.html "interface in com.google.android.exoplayer2.offline")\<T\>\>extends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[ParsingLoadable.Parser](../upstream/ParsingLoadable.Parser.html "interface in com.google.android.exoplayer2.upstream")<T>

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

A manifest parser that includes only the streams identified by the given stream keys.

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | FilteringManifestParser​(ParsingLoadable.Parser<? extends T> parser, List<StreamKey> streamKeys) | Deprecated. |

Method Summary

All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | T | parse​(Uri uri, InputStream inputStream) | Deprecated.

Parses an object from a response. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

FilteringManifestParser

public FilteringManifestParser​([ParsingLoadable.Parser](../upstream/ParsingLoadable.Parser.html "interface in com.google.android.exoplayer2.upstream")<? extends[T](FilteringManifestParser.html "type parameter in FilteringManifestParser")> parser,
                               @Nullable[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[StreamKey](StreamKey.html "class in com.google.android.exoplayer2.offline")> streamKeys)

Deprecated. Parameters:parser - A parser for the manifest that will be filtered.streamKeys - The stream keys. If null or empty then filtering will not occur.

Method Detail

- 

parse

public[T](FilteringManifestParser.html "type parameter in FilteringManifestParser")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")

Deprecated.

Description copied from interface: ParsingLoadable.Parser

Parses an object from a response. Specified by:parse in interface ParsingLoadable.Parser<T extends FilterableManifest<T>>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.