public class MediaParser extends Object
Constructor and Description |
---|
MediaParser() |
Modifier and Type | Method and Description |
---|---|
MediaObject |
detectType(MediaObject mo) |
static MediaParser |
getInstance() |
String |
parseMimeType(String format)
Parses a MIME type using Apache Tika which can handle the following:
https://github.com/apache/tika/blob/master/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
https://tika.apache.org/1.19.1/formats.html#Full_list_of_Supported_Formats
|
String |
parseMimeType(URI uri)
Parses a MIME type using Apache Tika which can handle the following:
https://github.com/apache/tika/blob/master/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
https://tika.apache.org/1.19.1/formats.html#Full_list_of_Supported_Formats
|
public MediaParser()
public static MediaParser getInstance()
public MediaObject detectType(MediaObject mo)
public String parseMimeType(@Nullable String format)
public String parseMimeType(@Nullable URI uri)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.