public class MimeTypes extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CONTENT_TYPE
The default MIME type for unknown extensions.
|
| Constructor and Description |
|---|
MimeTypes() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getAllMimeTypes()
Returns a list of all known MIME types.
|
static String |
getMimeType(String extension)
Returns a default MIME type for the given extension.
|
static List<String> |
getMimeTypes(String extension)
Returns a list of MIME types that are registered for the given extension.
|
public static final String DEFAULT_CONTENT_TYPE
public static List<String> getAllMimeTypes()
public static List<String> getMimeTypes(String extension)
extension - The extension to get the MIME types forpublic static String getMimeType(String extension)
extension - The extension to get the MIME type forCopyright © 2026. All rights reserved.