MetadataDecoderFactory


@UnstableApi
interface MetadataDecoderFactory


A factory for MetadataDecoder instances.

Summary

Constants

const MetadataDecoderFactory!

Default MetadataDecoder implementation.

Public functions

MetadataDecoder!

Creates a MetadataDecoder for the given Format.

Boolean

Returns whether the factory is able to instantiate a MetadataDecoder for the given Format.

Constants

DEFAULT

const val DEFAULTMetadataDecoderFactory!

Default MetadataDecoder implementation.

The formats supported by this factory are:

Public functions

createDecoder

fun createDecoder(format: Format!): MetadataDecoder!

Creates a MetadataDecoder for the given Format.

Parameters
format: Format!

The Format.

Throws
java.lang.IllegalArgumentException

If the Format is not supported.

supportsFormat

fun supportsFormat(format: Format!): Boolean

Returns whether the factory is able to instantiate a MetadataDecoder for the given Format.

Parameters
format: Format!

The Format.

Returns
Boolean

Whether the factory can instantiate a suitable MetadataDecoder.