T - The type of the metadata.public interface MetadataParser<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
canParse(String mimeType)
Checks whether the parser supports a given mime type.
|
T |
parse(byte[] data,
int size)
Parses a metadata object from the provided binary data.
|
boolean canParse(String mimeType)
mimeType - A metadata mime type.T parse(byte[] data, int size) throws ParserException
data - The raw binary data from which to parse the metadata.size - The size of the input data.ParserException - If a problem occurred parsing the data.