Module jakarta.mail

Class MimeUtil

java.lang.Object
jakarta.mail.internet.MimeUtil

class MimeUtil extends Object
General MIME-related utility methods.
Since:
JavaMail 1.4.4
  • Field Details

    • cleanContentType

      private static final Method cleanContentType
  • Constructor Details

    • MimeUtil

      private MimeUtil()
  • Method Details

    • cleanContentType

      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 - the MimePart
      contentType - the Content-Type value
      Returns:
      the cleaned Content-Type value
    • getContextClassLoader

      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.