public abstract class MimeMappingsExtensions extends Object
MimeMappings object with additional
MIME types.| Constructor and Description |
|---|
MimeMappingsExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static MimeMappings |
extendWithFontTypes(MimeMappings baseMimeMappings)
Extends the specified MIME mappings with mappings for font-related MIME
types.
|
public static MimeMappings extendWithFontTypes(MimeMappings baseMimeMappings)
Extends the specified MIME mappings with mappings for font-related MIME types. The returned MIME mappings represent the combination of the specified mappings and the additional mappings.
This method registers the following file extensions with their respective MIME types:
| File extension | MIME type |
|---|---|
| eot | application/vnd.ms-fontobject |
| otf | application/font-sfnt |
| ttf | application/font-sfnt |
| woff | application/font-woff |
baseMimeMappings - MIME mappings that are used as the base if the returned MIME
mappings. These mappings are not modified. A new mappings
object initialized from these mappings is created instead. If
null, MimeMappings.DEFAULT is used.Copyright © 2011–2017 aquenos GmbH. All rights reserved.