MetadataDecoderFactory


@UnstableApi
public interface MetadataDecoderFactory


A factory for MetadataDecoder instances.

Summary

Constants

default static final MetadataDecoderFactory

Default MetadataDecoder implementation.

Public methods

abstract MetadataDecoder

Creates a MetadataDecoder for the given Format.

abstract boolean

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

Constants

DEFAULT

default static final MetadataDecoderFactory DEFAULT

Default MetadataDecoder implementation.

The formats supported by this factory are:

Public methods

createDecoder

abstract MetadataDecoder createDecoder(Format format)

Creates a MetadataDecoder for the given Format.

Parameters
Format format

The Format.

Throws
java.lang.IllegalArgumentException

If the Format is not supported.

supportsFormat

abstract boolean supportsFormat(Format format)

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.