public final class Id3Decoder extends Object implements MetadataDecoder<List<Id3Frame>>
Constructor and Description |
---|
Id3Decoder() |
Modifier and Type | Method and Description |
---|---|
boolean |
canDecode(String mimeType)
Checks whether the decoder supports a given mime type.
|
List<Id3Frame> |
decode(byte[] data,
int size)
Decodes a metadata object from the provided binary data.
|
public boolean canDecode(String mimeType)
MetadataDecoder
canDecode
in interface MetadataDecoder<List<Id3Frame>>
mimeType
- A metadata mime type.public List<Id3Frame> decode(byte[] data, int size) throws MetadataDecoderException
MetadataDecoder
decode
in interface MetadataDecoder<List<Id3Frame>>
data
- The raw binary data from which to decode the metadata.size
- The size of the input data.MetadataDecoderException
- If a problem occurred decoding the data.