Top Description Fields Constructors Methods
com.sun.mail.util

public Class MimeUtil

extends Object
Class Inheritance
Imports
java.lang.reflect.*, java.security.*, javax.mail.internet.MimePart

General MIME-related utility methods.
Author
Bill Shannon
Since
JavaMail 1.4.4

Field Summary

Modifier and TypeField and Description
private static final Method

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the cleaned Content-Type value
cleanContentType
(MimePart
the MimePart
mp
,
String
the Content-Type value
contentType
)

If a Content-Type handler has been specified, call it to clean up the Content-Type value.

private static ClassLoader
getContextClassLoader()

Convenience method to get our context class loader.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cleanContentTypeback to summary
private static final Method cleanContentType

Constructor Detail

MimeUtilback to summary
private MimeUtil()

Method Detail

cleanContentTypeback to summary
public static String cleanContentType(MimePart mp, String contentType)

If a Content-Type handler has been specified, call it to clean up the Content-Type value.

Parameters
mp:MimePart

the MimePart

contentType:String

the Content-Type value

Returns:String

the cleaned Content-Type value

getContextClassLoaderback to summary
private static ClassLoader getContextClassLoader()

Convenience method to get our context class loader. Assert any privileges we might have and then call the Thread.getContextClassLoader method.