public final class MimeTypeMapper extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getExtension(String mimeType)
Returns the file extension for a given mime type.
|
static MimeTypeMapper |
getInstance()
Returns the singleton instance of the mime type mapper.
|
String |
getMimeType(String extension)
Returns the mime type for a given file extension.
|
public static MimeTypeMapper getInstance()
public String getExtension(String mimeType)
mimeType - The mime type string for which the file extension should be
retrieved.Copyright © 2016–2020 Lundegaard a.s.. All rights reserved.