T
- The type of the metadata.public interface MetadataDecoder<T>
Modifier and Type | Method and Description |
---|---|
boolean |
canDecode(String mimeType)
Checks whether the decoder supports a given mime type.
|
T |
decode(byte[] data,
int size)
Decodes a metadata object from the provided binary data.
|
boolean canDecode(String mimeType)
mimeType
- A metadata mime type.T decode(byte[] data, int size) throws MetadataDecoderException
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.