public final class MimeUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_MIMETYPE
The default MIME type to be used if no MIME type matches.
|
Modifier and Type | Method and Description |
---|---|
static String |
getFilename(String path)
Deprecated.
Will be removed in 8.1. Use
MultipageDocUtil.getFilename(String) instead. |
static String |
getMimeType(String filename)
Returns the MIME type matching the given filename.
|
static String |
getMimeTypeByPath(String path)
Returns the MIME type matching the given path (path/[/path...]/filename).
|
protected static void |
initialize()
Initializes the MimetypesFileTypeMap used by this util.
|
public static final String DEFAULT_MIMETYPE
protected static void initialize()
public static String getMimeType(String filename)
filename
- The filename to get the MIME type of.public static String getMimeTypeByPath(String path)
path
- The filename to get the MIME type of.@Deprecated public static String getFilename(String path)
MultipageDocUtil.getFilename(String)
instead.path
- The path+filename to be extract the filename from.Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.