Function IMimeDetector.mimeTypesForData

The list of the most preferred mime types for data. If its length is greater than 1 it means there are many mime type with same priority matching this data.

abstract const(char[])[] mimeTypesForData (
  const(void)[] data
);

Returns

The array of the names of the most preferred mime types for given data.

Note

Implementer should prefer to return arrays with unique names. Implementer is NOT expected to check if data is textual or not in order to provide text/plain or application/octet-stream fallback. Implementer is NOT expected to clarify mime type by namespace uri itself if it was detected that data is xml.