Interface MetadataDecoderFactory
-
public interface MetadataDecoderFactory
A factory forMetadataDecoder
instances.
-
-
Field Summary
Fields Modifier and Type Field Description static MetadataDecoderFactory
DEFAULT
DefaultMetadataDecoder
implementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetadataDecoder
createDecoder(Format format)
Creates aMetadataDecoder
for the givenFormat
.boolean
supportsFormat(Format format)
Returns whether the factory is able to instantiate aMetadataDecoder
for the givenFormat
.
-
-
-
Field Detail
-
DEFAULT
static final MetadataDecoderFactory DEFAULT
DefaultMetadataDecoder
implementation.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 aMetadataDecoder
for the givenFormat
.- Parameters:
format
- TheFormat
.- Returns:
- Whether the factory can instantiate a suitable
MetadataDecoder
.
-
createDecoder
MetadataDecoder createDecoder(Format format)
Creates aMetadataDecoder
for the givenFormat
.- Parameters:
format
- TheFormat
.- Returns:
- A new
MetadataDecoder
. - Throws:
IllegalArgumentException
- If theFormat
is not supported.
-
-