public class DefaultMimeRegistry extends Object implements MimeRegistry, Serializable
| Constructor and Description |
|---|
DefaultMimeRegistry()
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMimeType(ContentItem item)
Queries the mime-type for a given content-item.
|
String |
getMimeType(String filename)
Queries the mime-type for a given filename.
|
String |
getSuffix(String mimeType)
Returns the default suffix for files with the given content type.
|
public String getMimeType(ContentItem item)
getMimeType in interface MimeRegistryitem - the content item for which Mime-Data should be queried.public String getMimeType(String filename)
filename - the content item for which Mime-Data should be queried.public String getSuffix(String mimeType)
getSuffix in interface MimeRegistrymimeType - the mime-type for which a suffix is queried.