public class ExtensionToMimeType extends Object
| Constructor and Description |
|---|
ExtensionToMimeType() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getMimeType(String extension)
Determines the appropriate mime type (from list of hardcoded values) using the provided extension.
|
public static String getMimeType(String extension)
extension - file extension used to determine mimetype. Should not include the .
example: csv not .csv
Copyright © 2017. All rights reserved.