Class MimeTypeEntry

java.lang.Object
jakarta.activation.MimeTypeEntry

public class MimeTypeEntry extends Object
Represents mapping between the file extension and the MIME type string.
  • Constructor Details

    • MimeTypeEntry

      public MimeTypeEntry(String mime_type, String file_ext)
      Create new MimeTypeEntry
      Parameters:
      mime_type - the MIME type string
      file_ext - the file extension
  • Method Details

    • getMIMEType

      public String getMIMEType()
      Get MIME type string
      Returns:
      the MIME type string
    • getFileExtension

      public String getFileExtension()
      Get the file extension
      Returns:
      the file extension
    • toString

      public String toString()
      Overrides:
      toString in class Object