public interface MimeMappingStrategy
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
determineMimeTypeByFileName(java.lang.String fileName)
Determines the mime type by the file extension fo the given file name.
|
java.lang.String |
fileExtensionForMimeType(java.lang.String mimeType)
Computes the file extension (e.g.
|
java.lang.String fileExtensionForMimeType(java.lang.String mimeType)
mimeType - the mime type to get the file extension for.null if the specified mimeType is unknown
or could not be mapped to a file extension.java.lang.String determineMimeTypeByFileName(java.lang.String fileName)
fileName - The name of the file withou pathnull if no such mimetype is registered.Copyright © 2018 SAP SE. All Rights Reserved.