Class MimeTypeEntry


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

      Constructors 
      Constructor Description
      MimeTypeEntry​(java.lang.String mime_type, java.lang.String file_ext)
      Create new MimeTypeEntry
    • Constructor Detail

      • MimeTypeEntry

        public MimeTypeEntry​(java.lang.String mime_type,
                             java.lang.String file_ext)
        Create new MimeTypeEntry
        Parameters:
        mime_type - the MIME type string
        file_ext - the file extension
    • Method Detail

      • getMIMEType

        public java.lang.String getMIMEType()
        Returns:
        the MIME type string
      • getFileExtension

        public java.lang.String getFileExtension()
        Returns:
        the file extension
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object