Interface MetadataDecoder
-
- All Known Implementing Classes:
AppInfoTableDecoder
,EventMessageDecoder
,IcyDecoder
,Id3Decoder
,SimpleMetadataDecoder
,SpliceInfoDecoder
public interface MetadataDecoder
Decodes metadata from binary data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Metadata
decode(MetadataInputBuffer inputBuffer)
Decodes aMetadata
element from the provided input buffer.
-
-
-
Method Detail
-
decode
@Nullable Metadata decode(MetadataInputBuffer inputBuffer)
Decodes aMetadata
element from the provided input buffer.Respects
Buffer.limit()
ofinputBuffer.data
, but assumesBuffer.position()
andByteBuffer.arrayOffset()
are both zero andByteBuffer.hasArray()
is true.- Parameters:
inputBuffer
- The input buffer to decode.- Returns:
- The decoded metadata object, or
null
if the metadata could not be decoded or ifBuffer.isDecodeOnly()
was set on the input buffer.
-
-