public class OwMimeTypes extends Object
Utility class for mimetype descriptions mappings.
If the client wants to add more MIME types, or overwrite the existing settings,
the owdummy
configuration provide a file called e.g. mimetypes.properties
,
as an example.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Modifier and Type | Class and Description |
---|---|
protected static class |
OwMimeTypes.OwFileObjectStatics
Mimetypes singleton with mimetype file extension mappings.
|
Modifier and Type | Field and Description |
---|---|
static String |
EXTENSION_FIELD
embedded extension field (IBM On Demand compatible)
|
protected static OwMimeTypes.OwFileObjectStatics |
m_MimeTypes
mimetypes singleton
|
Constructor and Description |
---|
OwMimeTypes() |
Modifier and Type | Method and Description |
---|---|
static String |
getExtensionFromMime(String strMimeType_p)
get a file extension from MIME type
|
static String |
getMimeParameter(String strMimeParameter_p,
String strParameterName_p)
retrieve a parameter from a MIME parameter string
e.g.
|
static String |
getMimeTypeFromExtension(String strExtension_p)
get MIME type from extension
|
static String |
getMimeTypeFromPath(String path_p)
get MIME type from path
|
static void |
loadFromUrl(URL propsURL_p)
init the MimeType - loading data from URL
|
protected static final OwMimeTypes.OwFileObjectStatics m_MimeTypes
public static final String EXTENSION_FIELD
public static String getExtensionFromMime(String strMimeType_p)
strMimeType_p
- String MIME type, can be nullpublic static String getMimeTypeFromPath(String path_p)
path_p
- String path, can be nullpublic static String getMimeTypeFromExtension(String strExtension_p)
strExtension_p
- String extension, can be nullpublic static String getMimeParameter(String strMimeParameter_p, String strParameterName_p)
strParameterName_p
- String name of parameter to retrieveCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.