|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sssw.fw.util.EboMimeTypeHelper
Helper class that provides dynamic file/extension-to-mimetype mapping utility methods.
Field Summary | |
static String |
MT_APPLICATION_OCTET_STREAM
Constant for the "application/octet-stream" MIME type. |
static String |
MT_TEXT_PLAIN
Constant for the "text/plain" MIME type. |
Constructor Summary | |
EboMimeTypeHelper()
|
Method Summary | |
static String |
getExtensionByMimeType(String mimeType)
Gets a file extension that may be used for the specified mimetype. |
static String[] |
getExtensionsByMimeType(String mimeType)
Gets the list of any extensions that may be used for the specified mimetype. |
static String |
getMimeType(String fileName)
Gets the mimetype for a given file name based on file extension mappings that have been specified in the Director FrameworkService subsystem's config.xml file. |
static String |
getMimeTypeByExtension(String extension)
Gets the mimetype for a given file name based on file extension mappings that have been specified in the Director FrameworkService subsystem's config.xml file. |
static String |
getMimeTypeByFileName(String fileName)
Gets the mimetype for a given file name based on file extension mappings that have been specified in the Director FrameworkService subsystem's config.xml file. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final String MT_APPLICATION_OCTET_STREAM
public static final String MT_TEXT_PLAIN
Constructor Detail |
public EboMimeTypeHelper()
Method Detail |
public static String getMimeType(String fileName)
fileName
- file name for which you would like the mimetypepublic static String getMimeTypeByFileName(String fileName)
fileName
- file name for which you would like the mimetypepublic static String getMimeTypeByExtension(String extension)
extension
- file extension for which you would like the mimetypepublic static String getExtensionByMimeType(String mimeType)
getExtensionsByMimeType
method to get the list of all
the suitable file extensions.mimeType
- the mime typepublic static String[] getExtensionsByMimeType(String mimeType)
mimeType
- the mimetype
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |