Interface MetadataDecoderFactory
-
public interface MetadataDecoderFactoryA factory forMetadataDecoderinstances.
-
-
Field Summary
Fields Modifier and Type Field Description static MetadataDecoderFactoryDEFAULTDefaultMetadataDecoderimplementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetadataDecodercreateDecoder(Format format)Creates aMetadataDecoderfor the givenFormat.booleansupportsFormat(Format format)Returns whether the factory is able to instantiate aMetadataDecoderfor the givenFormat.
-
-
-
Field Detail
-
DEFAULT
static final MetadataDecoderFactory DEFAULT
DefaultMetadataDecoderimplementation.The formats supported by this factory are:
- ID3 (
Id3Decoder) - EMSG (
EventMessageDecoder) - SCTE-35 (
SpliceInfoDecoder) - ICY (
IcyDecoder)
- ID3 (
-
-
Method Detail
-
supportsFormat
boolean supportsFormat(Format format)
Returns whether the factory is able to instantiate aMetadataDecoderfor the givenFormat.- Parameters:
format- TheFormat.- Returns:
- Whether the factory can instantiate a suitable
MetadataDecoder.
-
createDecoder
MetadataDecoder createDecoder(Format format)
Creates aMetadataDecoderfor the givenFormat.- Parameters:
format- TheFormat.- Returns:
- A new
MetadataDecoder. - Throws:
IllegalArgumentException- If theFormatis not supported.
-
-